Tribe__Date_Utils::is_timestamp( $timestamp )
check if a given string is a timestamp
Contents
Parameters
- $timestamp
-
(Required)
Return
(bool)
Source
File: src/Tribe/Date_Utils.php
public static function is_timestamp( $timestamp ) {
if ( is_numeric( $timestamp ) && (int) $timestamp == $timestamp && date( 'U', $timestamp ) == $timestamp ) {
return true;
}
return false;
}