Created
September 21, 2014 12:43
-
-
Save AlphaGit/75b49e6984164b7190db to your computer and use it in GitHub Desktop.
Example usage of tardis.js
This file contains hidden or 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
new Date(); | |
// => Thu Aug 28 2014 19:47:15 GMT-0500 (Central Daylight Time) | |
tardis.travelToFuture(24 * 60 * 60 * 1000); | |
new Date(); | |
// => Fri Aug 29 2014 19:47:15 GMT-0500 (Central Daylight Time) | |
tardis.travelToPast(60 * 60 * 1000); | |
new Date(); | |
// => Fri Aug 29 2014 18:47:15 GMT-0500 (Central Daylight Time) | |
tardis.restoreTime(); | |
new Date(); | |
// => Thu Aug 28 2014 19:47:15 GMT-0500 (Central Daylight Time) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment