Get the number of seconds for a minute, hour, day and week.
npm install seconds> Get the number of seconds for a minute, hour, day and week.
``bash`
npm i seconds --save
`bash`
npm test
`js
var seconds = require('seconds');
seconds('minute');
//=> 60
`
I'd like to implement the following if someone wants to do a PR before I get around to them:
- [x] ~~today: function to calculate seconds since beginning of the day~~month
- [ ] : function to calculate seconds since beginning of the monthyear
- [ ] : function to calculate seconds since beginning of the year
I'm also open to other ideas for this lib.
From other maintainers
- [current-day-number]
- [current-week-number] - like [week] but takes a different approach to getting the week number.
- [week-hours]
Other libs I maintain
- [days]
- [month]
- [months]
- [week]
- [weekday]
- [year]
Jon Schlinkert
+ github/jonschlinkert
+ twitter/jonschlinkert
*
_This file was generated by verb on December 07, 2014. To update, run npm i -g verb && verb`._
[current-day-number]: https://github.com/tunnckoCore/current-day-number
[current-week-number]: https://github.com/tunnckoCore/current-week-number
[week-hours]: https://github.com/tunnckoCore/week-hours
[days]: https://github.com/jonschlinkert/days
[month]: https://github.com/jonschlinkert/month
[months]: https://github.com/jonschlinkert/months
[week]: https://github.com/jonschlinkert/week
[weekday]: https://github.com/jonschlinkert/weekday
[year]: https://github.com/jonschlinkert/year