Ejemplo n.º 1
0
 public function testNow()
 {
     $second = Second::now();
     $this->assertEquals(\intval(date('s')), $second->toNative());
 }
Ejemplo n.º 2
0
 /**
  * Returns current Time.
  *
  * @return self
  */
 public static function now()
 {
     $time = new static(Hour::now(), Minute::now(), Second::now());
     return $time;
 }