Skip to content

Get the number of seconds for a minute, hour, day and week.

License

Notifications You must be signed in to change notification settings

datetime/seconds

Repository files navigation

seconds NPM version

Get the number of seconds for a minute, hour, day and week.

Install

Install with npm

npm i seconds --save

Run tests

npm test

Usage

var seconds = require('seconds');

seconds('minute');
//=> 60

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

I'd like to implement the following if someone wants to do a PR before I get around to them:

  • today: function to calculate seconds since beginning of the day
  • month: function to calculate seconds since beginning of the month
  • year: function to calculate seconds since beginning of the year

I'm also open to other ideas for this lib.

Related

From other maintainers

Other libs I maintain

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert
Released under the MIT license


This file was generated by verb on December 07, 2014. To update, run npm i -g verb && verb.

About

Get the number of seconds for a minute, hour, day and week.

Resources

License

Stars

Watchers

Forks

Packages

No packages published