Skip to content

Instantly share code, notes, and snippets.

@craigsimps
Created December 14, 2015 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigsimps/18bd4926e475e65b076d to your computer and use it in GitHub Desktop.
Save craigsimps/18bd4926e475e65b076d to your computer and use it in GitHub Desktop.
Simple function to determine if a date is in the future.
/**
*
* 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