Get the number of seconds/milliseconds in a week.
Install
npm i --save week-seconds
npm test
API
For more use-cases see the tests
weekSeconds
Get the number of seconds/milliseconds in a week.
[bool]
{Boolean} whentrue
, returns seconds, pass to day-secondsreturn
{Number}
Example:
var weekSeconds = ; ;//=> 604800000 ;//=> 604800000 ;//=> 604800000 ;//=> 604800000 ;//=> 604800000 ;//=> 604800000 ;//=> 604800
Author
Charlike Mike Reagent
License
Copyright (c) 2014-2015 Charlike Mike Reagent, contributors.
Released under the MIT
license.
Powered and automated by kdf, March 02, 2015