Tribe__Validator__Base::is_time( mixed $value )
Whether the value is a timestamp or a string parseable by the strtotime function or not.
Contents
Parameters
- $value
-
(mixed) (Required)
Return
(bool)
Source
File: src/Tribe/Validator/Base.php
public function is_time( $value ) {
return is_numeric( $value ) || ( is_string( $value ) && strtotime( $value ) );
}