Exemplo n.º 1
0
 public function current()
 {
     return UTCDateTime::fromMicrotime(microtime());
 }
Exemplo n.º 2
0
 public function testItCanSetUsec()
 {
     $date = UTCDateTime::box('2015-01-01');
     $this->assertEquals(UTCDateTime::fromMicrotime('0.123456 1420070400'), $date->withUsec(123456));
 }