Exemple #1
0
 public function testNow()
 {
     $time = Time::now();
     $this->assertEquals(date('G:i:s'), \strval($time));
 }
Exemple #2
0
 /**
  * Returns current DateTime.
  *
  * @return DateTime
  */
 public static function now()
 {
     $dateTime = new static(Date::now(), Time::now());
     return $dateTime;
 }