Tribe__Date_Utils::is_timestamp( $timestamp )

check if a given string is a timestamp


Parameters

$timestamp

(Required)


Top ↑

Return

(bool)


Top ↑

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;
		}