src/Utility/Time.php
public static function isInTheFuture($dateString, $timezone = null) {
		$date = new CakeTime($dateString, $timezone);
		$date = $date->format('U');
		return date(FORMAT_DB_DATETIME, $date) > date(FORMAT_DB_DATETIME, time());
	}
public static function isInTheFuture($dateString, $timezone = null) {
		$date = new CakeTime($dateString, $timezone);
		$date = $date->format('U');
		return date(FORMAT_DB_DATETIME, $date) > date(FORMAT_DB_DATETIME, time());
	}
public static function isInTheFuture ( $ dateString , $ timezone = null ) { $ date = new CakeTime ( $ dateString , $ timezone ) ; $ date = $ date -> format ( 'U' ) ; return date ( FORMAT_DB_DATETIME , $ date ) > date ( FORMAT_DB_DATETIME , time ( ) ) ; }
Returns true if given datetime string is not now AND is in the future.

@param string $dateString Datetime string or Unix timestamp
@param int|null $timezone User's timezone
@return bool True if datetime is not today AND is in the future
Returns true if given datetime string is not now AND is in the future .