Last active
May 17, 2016 05:15
-
-
Save YokiToki/e254377e5891ee098ba3012ab60a97e2 to your computer and use it in GitHub Desktop.
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
// Using: node timezone.js | |
var date; | |
var lastDate = new Date(-1); | |
var time = (new Date()).getTime(); | |
for (var i = 0; i < time; i+=(86400 * 1000)) { | |
date = new Date(i); | |
if(date.getTimezoneOffset() !== lastDate.getTimezoneOffset()) { | |
console.log("|"); | |
console.log("|-> %s", date); | |
} | |
lastDate = new Date(i); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment