Get the number of hours for a day, week and the elapsed hours for the current day.
npm i hours --save
npm test
var hours = require('hours');
// elapsed hours today
console.log(hours('today'));
//=> 19
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 hours since beginning of the daymonth: function to calculate hours since beginning of the monthyear: function to calculate hours since beginning of the yearI'm also open to other ideas for this lib.
Other libs I maintain
From other maintainers
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.