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); }
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(); }
/** * 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(); }