schmunk42\giiant\helpers\GiiantFaker::time PHP Метод

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

public static time ( null $format = null ) : mixed
$format null - Custom format
Результат mixed
    public static function time($format = null)
    {
        return self::value(self::TYPE_TIME, $format);
    }

Usage Example

Пример #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);
     });
 }