time() публичный статический Метод

public static time ( null $format = null ) : mixed
$format null - Custom format
Результат mixed
Пример #1
0
 public function testTimeMethod()
 {
     $value = GiiantFaker::time();
     $this->specify('returned value is string as time', function () use($value) {
         expect('value is not empty', $value)->notEmpty();
         expect('value is string', is_string($value))->true();
         \DateTime::createFromFormat(GiiantFaker::FORMAT_TIME, $value);
     });
 }