Get the number of minutes for an hour, day, week and the elapsed minutes for the current day.
Install with npm
npm i minutes --save
npm test
var minutes = require('minutes');
// elapsed minutes today
console.log(minutes('today'));
//=> 1201
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 minutes since beginning of the day -
month
: function to calculate minutes since beginning of the month -
year
: function to calculate minutes since beginning of the year
I'm also open to other ideas for this lib.
Other libs I maintain
From other maintainers
- current-day-number
- current-week-number - like week but takes a different approach to getting the week number.
- week-hours
Jon Schlinkert
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
.