Skip to content

Instantly share code, notes, and snippets.

@lennybacon
Created December 22, 2016 09:55
Show Gist options
  • Save lennybacon/0e6588b4b9b79aa6da8dee969650a240 to your computer and use it in GitHub Desktop.
Save lennybacon/0e6588b4b9b79aa6da8dee969650a240 to your computer and use it in GitHub Desktop.
Check ES6/ISO8601 compliance
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