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