Skip to content

Instantly share code, notes, and snippets.

@ojilles
Created January 22, 2009 00:34
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 ojilles/50357 to your computer and use it in GitHub Desktop.
Save ojilles/50357 to your computer and use it in GitHub Desktop.
<?php
$snowboardtime = mktime(0, 0, 0, 2, 1, 2009) - (7*24*3600);
$diff = $snowboardtime - time();
if($diff > 0) {
echo "<center><b>No</b>";
echo "<br /><br /><i>Still need to wait $diff seconds (aka: ".intval($diff / (24*60*60)). " days)</i></center>";
} else {
echo "<center>Yes</center>";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment