Get the number of seconds/milliseconds in leap/noleap year.
Install
npm i --save year-seconds
npm test
API
For more use-cases see the tests
yearSeconds
Get the number of seconds/milliseconds in leap/noleap year.
[year]
{Number} year number, pass to year-days[bool]
{Boolean} whentrue
, returns seconds, pass to day-secondsreturn
{Number}
Example:
var yearSeconds = ; ;//=> 31536000000 milliseconds ;//=> 31536000000 milliseconds ;//=> 31536000000 milliseconds ;//=> 31536000000 milliseconds ;//=> 31536000000 milliseconds ;//=> 31622400000 milliseconds ;//=> 31622400 seconds ;//=> 31536000000 milliseconds ;//=> 31536000 seconds
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