get-time-between
Measure the amount of time during work hours between two dates.
🌩 Installation
npm install --save get-time-between
📝 API
Calculate the number of millseconds during working hours between two dates. The
result of this can be formatted as you wish, with libraries such as
pretty-ms
for example.
All methods take an optional 3rd argument containing the following options, shown here with their default values:
; const fridayFivePm = 'May 17 2019 17:00:00';const mondayElevenAm = 'May 20 2017 11:00:00'; const timeBetween = ; console;// => 7200000
👏🏻 Credits
This project is a fork of https://github.com/tal/time-between by Tal Atlas.
🙋🏾♀️ Getting Help
- Get help with issues by creating a Bug Report.
- Discuss ideas by opening a Feature Request.