Skip to content

Instantly share code, notes, and snippets.

@ojilles ojilles/gist:50357
Created Jan 22, 2009

Embed
What would you like to do?
<?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
You can’t perform that action at this time.