Skip to content

Instantly share code, notes, and snippets.

@asilchev
Created June 30, 2014 06:52
Show Gist options
  • Save asilchev/23689c6799e953311b16 to your computer and use it in GitHub Desktop.
Save asilchev/23689c6799e953311b16 to your computer and use it in GitHub Desktop.
<html>
<head>
<script type="text/javascript">
var total = 18;
var diff = (new Date((new Date(2014, 5, 28, 18, 00)).getTime() - (new Date()).getTime())).getTime() / (36e5);
document.write(diff.toFixed(3) + " hours left... <br>");
</script>
</head>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment