Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Test your time-dependent app by monkey patching the Date function and overriding your system time.
JavaScript
tag: 0.1.3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
test
.gitignore
.jshintrc
.travis.yml
Gruntfile.js
README.md
bower.json
karma.conf.js
package.json
timemachine.js
timemachine.min.js

README.md

timemachine Build Status

Test your time critical app by overriding the native Javascript Date function

Installation

$ bower install timemachine --save-dev

Usage

timemachine.config({
  dateString: 'December 25, 1991 13:12:59'
});

console.log(new Date()); // December 25, 1991 13:12:59

Also compatible with RequireJS, CommonJS, NodeJS, ...

Something went wrong with that request. Please try again.