Created
December 14, 2015 14:39
-
-
Save craigsimps/18bd4926e475e65b076d to your computer and use it in GitHub Desktop.
Simple function to determine if a date is in the future.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Simple function to determine if a date is in the future. | |
* | |
* @param $time | |
* | |
* @return bool | |
*/ | |
function isFuture($time) | |
{ | |
return (strtotime($time) > time()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment