timrwood/moment — pull request #361 by ichernev (2012-07-15 14:42:47+00:00)
Title: Added support for mocking the current time

This is especially useful in testing.

Usage

```js
moment.mockNow = moment().day(3);
moment().valueOf() === moment.mockNow.valueOf();
```

You can assign anything to `moment.mockNow` that you would normally pass to a moment constructor (except it doesn't allow string + format).