Package Exports
- hours
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hours) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
hours 
Get the number of hours for a day, week and the elapsed hours for the current day.
Install with npm
npm i hours --save
Run tests
npm test
Usage
var hours = require('hours');
// elapsed hours today
console.log(hours('today'));
//=> 19
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 hours since beginning of the day -
month
: function to calculate hours since beginning of the month -
year
: function to calculate hours since beginning of the year
I'm also open to other ideas for this lib.
Related
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
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
.