day-seconds

Get the number of seconds/milliseconds in a day.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
day-seconds
311.0.28 years ago8 years agoMinified + gzip package size for day-seconds in KB

Readme

!npmnpmjs-imgnpmjs-url !mit licenselicense-imglicense-url !build statustravis-imgtravis-url !coverage statuscoveralls-imgcoveralls-url

Get the number of seconds/milliseconds in a day.

Install

npm i --save day-seconds
npm test

API

For more use-cases see the tests

daySeconds

Get the number of seconds/milliseconds in a day.

  • [bool] {Boolean} when true, returns seconds, otherwise milliseconds
  • return {Number}

Example:
var daySeconds = require('day-seconds');

daySeconds(false);
//=> 86400000

daySeconds();
//=> 86400000

daySeconds('str');
//=> 86400000

daySeconds([1,2,3]);
//=> 86400000

daySeconds(/regex/gm);
//=> 86400000

daySeconds({});
//=> 86400000

daySeconds(true);
//=> 86400

Author

Charlike Mike Reagent

License !MIT licenselicense-imglicense-url

Copyright (c) 2014-2015 Charlike Mike Reagentcontrib-more, contributorscontrib-graf.
Released under the MITlicense-url license.

Powered and automated by kdf
, March 02, 2015