Created
December 22, 2016 09:55
-
-
Save lennybacon/0e6588b4b9b79aa6da8dee969650a240 to your computer and use it in GitHub Desktop.
Check ES6/ISO8601 compliance
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
class TimeTest { | |
constructor(name) { | |
this.name = name; | |
} | |
start() { | |
var x = new Date('2016-01-29T14:00:00'); | |
return "Project " + this.name + ": " + x.getTime(); | |
} | |
} | |
var tt = new TimeTest("Journal"); | |
tt.start(); | |
//Must return 1454072400000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment