{"maintainers":[{"name":"boblauer","email":"rlauer@gmail.com"}],"keywords":["date","mock","test"],"dist-tags":{"latest":"2.0.1"},"author":{"name":"Bob Lauer","email":"rlauer@gmail.com"},"description":"A JavaScript mock Date object that can be used to change when \"now\" is.","readme":"MockDate\n========\n\nA JavaScript Mock Date object that can be used to change when \"now\" is.\n\n[![Build Status](https://travis-ci.org/boblauer/MockDate.png)](https://travis-ci.org/boblauer/MockDate)\n\n## Installation ##\n`npm install mockdate`\n\n## Environment Support ##\nMockDate has been tested in Node, IE9+, Chrome, Firefox, and Opera.\n\n## Usage ##\n```javascript\n// CommonJS\nvar MockDate = require('mockdate');\n```\n```javascript\n// AMD\nrequire(['MockDate'], function(MockDate) { ... });\n```\n```javascript\n// Script Tag\nvar MockDate = window.MockDate;\n```\n\n## API ##\n```javascript;\nMockDate.set(date, [timezoneOffset])\n```\n\n#### __date__\n\n__date__: __`Object`__\n\nThe `Date` to be returned when no parameters are passed to `new Date()`.  Supports any object that has a `.valueOf` method that returns a value that can be passed to `new Date()`.\n\n__date__: __`String`__\n\nThe string representation of the `Date` to be returned when no parameters are passed to `new Date()`.\n\n__date__: __`Number`__\n\nThe millisecond representation of the `Date` to be returned when no parameters are passed to `new Date()`.\n\n### __timezoneOffset\n\n__timezoneOffset__: __`Number`__\n\nThe value that should be returned by new Date().getTimezoneOffset()\n\n```javascript\nMockDate.reset();\n```\n\nWill restore the original `Date` object back to the native implementation.\n\n## Example ##\n```javascript\nMockDate.set('1/1/2000');\n\nnew Date().toString() // \"Sat Jan 01 2000 00:00:00 GMT-0600 (CST)\"\n\nMockDate.set('1/1/2000', 120);\n\nnew Date().getTimezoneOffset() // 120\n\nMockDate.set(new Date('2/2/2000'));\n\nnew Date().toString() // \"Wed Feb 02 2000 00:00:00 GMT-0600 (CST)\"\n\nMockDate.set(moment('3/3/2000')); // using momentjs\n\nnew Date().toString() // \"Fri Mar 03 2000 00:00:00 GMT-0600 (CST)\"\n\nMockDate.reset();\n\nnew Date().toString() // \"Mon Mar 17 2014 18:08:44 GMT-0500 (CDT)\"\nnew Date().getTimezoneOffset() // 360\n```\n\n## Test ##\n```javascript\nnpm test\n```\n","repository":{"type":"git","url":"git+https://github.com/boblauer/MockDate.git"},"users":{"christhebaron":true,"sopepos":true},"bugs":{"url":"https://github.com/boblauer/MockDate/issues"},"license":"MIT","versions":{"0.0.1":{"name":"mockdate","version":"0.0.1","description":"A JavaScript mock Date object that can be used to change when \"now\" is.","main":"./src/mockdate.js","dependencies":{},"devDependencies":{"grunt":"~0.4.2","grunt-mocha":"~0.4.10","load-grunt-tasks":"~0.3.0"},"scripts":{"test":"grunt mocha"},"repository":{"type":"git","url":"https://github.com/boblauer/MockDate.git"},"keywords":["date","mock","test"],"author":{"name":"Bob Lauer","email":"rlauer@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/boblauer/MockDate/issues"},"homepage":"https://github.com/boblauer/MockDate","_id":"mockdate@0.0.1","dist":{"shasum":"54ae9e2a7b5f8ae2cb3d2a6aa40da2c563618e7a","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/mockdate/-/mockdate-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"boblauer","email":"rlauer@gmail.com"},"maintainers":[{"name":"boblauer","email":"rlauer@gmail.com"}],"directories":{}},"0.0.2":{"name":"mockdate","version":"0.0.2","description":"A JavaScript mock Date object that can be used to change when \"now\" is.","main":"./src/mockdate.js","dependencies":{},"devDependencies":{"grunt":"~0.4.2","grunt-mocha":"~0.4.10","load-grunt-tasks":"~0.3.0"},"scripts":{"test":"grunt mocha"},"repository":{"type":"git","url":"https://github.com/boblauer/MockDate.git"},"keywords":["date","mock","test"],"author":{"name":"Bob Lauer","email":"rlauer@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/boblauer/MockDate/issues"},"homepage":"https://github.com/boblauer/MockDate","_id":"mockdate@0.0.2","dist":{"shasum":"dd89612fbc42b80bd5dc0573ce4ed48959cc1695","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/mockdate/-/mockdate-0.0.2.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"boblauer","email":"rlauer@gmail.com"},"maintainers":[{"name":"boblauer","email":"rlauer@gmail.com"}],"directories":{}},"1.0.0":{"name":"mockdate","version":"1.0.0","description":"A JavaScript mock Date object that can be used to change when \"now\" is.","main":"./src/mockdate.js","dependencies":{},"devDependencies":{"grunt":"~0.4.2","grunt-mocha":"~0.4.10","load-grunt-tasks":"~0.3.0"},"scripts":{"test":"grunt mocha"},"repository":{"type":"git","url":"https://github.com/boblauer/MockDate.git"},"keywords":["date","mock","test"],"author":{"name":"Bob Lauer","email":"rlauer@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/boblauer/MockDate/issues"},"homepage":"https://github.com/boblauer/MockDate","_id":"mockdate@1.0.0","dist":{"shasum":"159c8deb81d0002584506e86e19c889d0d30751c","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/mockdate/-/mockdate-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"boblauer","email":"rlauer@gmail.com"},"maintainers":[{"name":"boblauer","email":"rlauer@gmail.com"}],"directories":{}},"1.0.1":{"name":"mockdate","version":"1.0.1","description":"A JavaScript mock Date object that can be used to change when \"now\" is.","main":"./src/mockdate.js","dependencies":{},"devDependencies":{"chai":"^1.10.0","grunt":"~0.4.2","grunt-mocha":"~0.4.10","load-grunt-tasks":"~0.3.0"},"scripts":{"test":"grunt mocha"},"repository":{"type":"git","url":"https://github.com/boblauer/MockDate.git"},"keywords":["date","mock","test"],"author":{"name":"Bob Lauer","email":"rlauer@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/boblauer/MockDate/issues"},"homepage":"https://github.com/boblauer/MockDate","_id":"mockdate@1.0.1","dist":{"shasum":"ca366572ff43c42c19fb71546673b782209bd0d8","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/mockdate/-/mockdate-1.0.1.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"boblauer","email":"rlauer@gmail.com"},"maintainers":[{"name":"boblauer","email":"rlauer@gmail.com"}],"directories":{}},"1.0.2":{"name":"mockdate","version":"1.0.2","description":"A JavaScript mock Date object that can be used to change when \"now\" is.","main":"./src/mockdate.js","dependencies":{},"devDependencies":{"chai":"^1.10.0","grunt":"~0.4.2","grunt-mocha":"~0.4.10","load-grunt-tasks":"~0.3.0"},"scripts":{"test":"grunt mocha"},"repository":{"type":"git","url":"https://github.com/boblauer/MockDate.git"},"keywords":["date","mock","test"],"author":{"name":"Bob Lauer","email":"rlauer@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/boblauer/MockDate/issues"},"homepage":"https://github.com/boblauer/MockDate","_id":"mockdate@1.0.2","dist":{"shasum":"5ad30e716a9fd46f26d2e25a3be79b1db61f9759","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/mockdate/-/mockdate-1.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"boblauer","email":"rlauer@gmail.com"},"maintainers":[{"name":"boblauer","email":"rlauer@gmail.com"}],"directories":{}},"1.0.3":{"name":"mockdate","version":"1.0.3","description":"A JavaScript mock Date object that can be used to change when \"now\" is.","main":"./src/mockdate.js","dependencies":{},"devDependencies":{"chai":"^1.10.0","grunt":"~0.4.2","grunt-mocha":"~0.4.10","load-grunt-tasks":"~0.3.0"},"scripts":{"test":"grunt mocha"},"repository":{"type":"git","url":"https://github.com/boblauer/MockDate.git"},"keywords":["date","mock","test"],"author":{"name":"Bob Lauer","email":"rlauer@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/boblauer/MockDate/issues"},"homepage":"https://github.com/boblauer/MockDate","spm":{"main":"src/mockdate.js"},"_id":"mockdate@1.0.3","dist":{"shasum":"3332cbb474a71225a25b552f0182dd13fb938f57","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/mockdate/-/mockdate-1.0.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"boblauer","email":"rlauer@gmail.com"},"maintainers":[{"name":"boblauer","email":"rlauer@gmail.com"}],"directories":{}},"1.0.4":{"name":"mockdate","version":"1.0.4","description":"A JavaScript mock Date object that can be used to change when \"now\" is.","main":"./src/mockdate.js","dependencies":{},"devDependencies":{"chai":"^1.10.0","grunt":"~0.4.2","grunt-mocha":"~0.4.10","load-grunt-tasks":"~0.3.0"},"scripts":{"test":"grunt mocha"},"repository":{"type":"git","url":"git+https://github.com/boblauer/MockDate.git"},"keywords":["date","mock","test"],"author":{"name":"Bob Lauer","email":"rlauer@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/boblauer/MockDate/issues"},"homepage":"https://github.com/boblauer/MockDate","spm":{"main":"src/mockdate.js"},"gitHead":"27b6482c5902048d13f257976c166f2199570601","_id":"mockdate@1.0.4","_shasum":"00aa9ef0a5995851e3f12d11779300815a5319ed","_from":".","_npmVersion":"3.5.3","_nodeVersion":"0.10.40","_npmUser":{"name":"boblauer","email":"rlauer@gmail.com"},"maintainers":[{"name":"boblauer","email":"rlauer@gmail.com"}],"dist":{"shasum":"00aa9ef0a5995851e3f12d11779300815a5319ed","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/mockdate/-/mockdate-1.0.4.tgz"},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/mockdate-1.0.4.tgz_1454434028675_0.15362050873227417"},"directories":{}},"2.0.0":{"name":"mockdate","version":"2.0.0","description":"A JavaScript mock Date object that can be used to change when \"now\" is.","main":"./src/mockdate.js","dependencies":{},"devDependencies":{"chai":"^3.5.0","grunt":"~0.4.2","grunt-mocha":"~1.0.2","load-grunt-tasks":"~3.5.2"},"scripts":{"test":"grunt mocha"},"repository":{"type":"git","url":"git+https://github.com/boblauer/MockDate.git"},"keywords":["date","mock","test"],"author":{"name":"Bob Lauer","email":"rlauer@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/boblauer/MockDate/issues"},"homepage":"https://github.com/boblauer/MockDate","spm":{"main":"src/mockdate.js"},"gitHead":"901c0014bb1716fbef2a1bb79d3ee9077fd56c84","_id":"mockdate@2.0.0","_shasum":"7b37940acf9c3019d8df0887926bdee1829ed61a","_from":".","_npmVersion":"3.8.8","_nodeVersion":"4.3.0","_npmUser":{"name":"boblauer","email":"rlauer@gmail.com"},"maintainers":[{"name":"boblauer","email":"rlauer@gmail.com"}],"dist":{"shasum":"7b37940acf9c3019d8df0887926bdee1829ed61a","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/mockdate/-/mockdate-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mockdate-2.0.0.tgz_1477873565006_0.056039707036688924"},"directories":{}},"2.0.1":{"name":"mockdate","version":"2.0.1","description":"A JavaScript mock Date object that can be used to change when \"now\" is.","main":"./src/mockdate.js","dependencies":{},"devDependencies":{"chai":"^3.5.0","grunt":"~0.4.2","grunt-mocha":"~1.0.2","load-grunt-tasks":"~3.5.2"},"scripts":{"test":"grunt mocha"},"repository":{"type":"git","url":"git+https://github.com/boblauer/MockDate.git"},"keywords":["date","mock","test"],"author":{"name":"Bob Lauer","email":"rlauer@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/boblauer/MockDate/issues"},"homepage":"https://github.com/boblauer/MockDate","spm":{"main":"src/mockdate.js"},"gitHead":"6223b7085c70fdaee096870e868a2a9e35bf4e44","_id":"mockdate@2.0.1","_shasum":"51bc309e2c4396600d56b6c23a6a0f4182943a36","_from":".","_npmVersion":"3.8.8","_nodeVersion":"4.3.0","_npmUser":{"name":"boblauer","email":"rlauer@gmail.com"},"maintainers":[{"name":"boblauer","email":"rlauer@gmail.com"}],"dist":{"shasum":"51bc309e2c4396600d56b6c23a6a0f4182943a36","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/mockdate/-/mockdate-2.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mockdate-2.0.1.tgz_1479852179287_0.9943983303382993"},"directories":{}}},"name":"mockdate","time":{"modified":"2016-11-22T22:03:01.375Z","created":"2014-03-17T23:11:23.147Z","0.0.1":"2014-03-17T23:11:23.147Z","0.0.2":"2014-03-17T23:28:05.556Z","1.0.0":"2014-06-24T16:19:42.569Z","1.0.1":"2014-12-17T17:26:02.905Z","1.0.2":"2015-04-06T14:08:03.642Z","1.0.3":"2015-04-20T20:49:43.158Z","1.0.4":"2016-02-02T17:27:10.778Z","2.0.0":"2016-10-31T00:26:05.234Z","2.0.1":"2016-11-22T22:03:01.375Z"},"readmeFilename":"README.md","homepage":"https://github.com/boblauer/MockDate"}