
Get the number of seconds/milliseconds in leap/noleap year.
Install
npm install year-seconds
npm test
API
For more use-cases see the tests
Get the number of seconds/milliseconds in leap/noleap year.
[year] {Number} year number, pass to year-days
[bool] {Boolean} when true, returns seconds, pass to day-seconds
return {Number}
Example:
var yearSeconds = require('year-seconds');
yearSeconds();
yearSeconds(false);
yearSeconds('str');
yearSeconds(/regex/gi);
yearSeconds([1, 2, 3]);
yearSeconds(2016);
yearSeconds(2016, true);
yearSeconds(2014);
yearSeconds(2014, true);
Author
Charlike Mike Reagent
License 
Copyright (c) 2014-2015 Charlike Mike Reagent, contributors.
Released under the MIT license.
Powered and automated by kdf, January 26, 2015