Ejemplo n.º 1
0
 private function check(LocalTime $test, $h, $m, $s, $n)
 {
     $this->assertEquals($test->getHour(), $h);
     $this->assertEquals($test->getMinute(), $m);
     $this->assertEquals($test->getSecond(), $s);
     $this->assertEquals($test->getNano(), $n);
     $this->assertEquals($test, $test);
     $this->assertEquals(LocalTime::of($h, $m, $s, $n), $test);
 }
Ejemplo n.º 2
0
 public function serialize()
 {
     return $this->date->getYear() . ':' . $this->date->getMonthValue() . ':' . $this->date->getDayOfMonth() . ':' . $this->time->getHour() . ':' . $this->time->getMinute() . ':' . $this->time->getSecond() . ':' . $this->time->getNano();
 }
Ejemplo n.º 3
0
 /**
  * Gets the nano-of-second field.
  *
  * @return int the nano-of-second, from 0 to 999,999,999
  */
 public function getNano()
 {
     return $this->time->getNano();
 }