Last active
December 25, 2015 07:49
-
-
Save pietvanzoen/6942323 to your computer and use it in GitHub Desktop.
Time Cop
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
// Returns TRUE when time() is greater than $datatime_string | |
function time_cop($datetime_string = '3/27/2013 6AM') | |
{ | |
if (empty($datetime_string)) { | |
return FALSE; | |
} | |
return time() >= strtotime($datetime_string); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment