0.0.7 • Published 10 years ago
rl-timestamp v0.0.7
rl-timestamp 
Some simple timestamp tools
Install
$ npm install --save rl-timestampI would also add alias timestamp=rl-timestamp to your bash profile.
Usage
var timestamp = require('rl-timestamp');
timestamp();
//=> 'unicorns & rainbows'API
timestamp() methods
readFileLines
Type: path
Prints out minute totals for two moment points separated by -- from a file
options
no-sum
Type: boolean
Default: false
Silences print out of total hours.
CLI
Install
$ npm install --global rl-timestampDefault
$ rl-timestamp
15-12-28 18:12With file
$ rl-timestamp -f testfile.txt
111
56
85
120
=====
Total:
6 hours, 12 minutesWith no-sum flag
$ rl-timestamp -f testfile.txt --no-sum
111
56
85
120With since flag
$ rl-timestamp -f testfile.txt -since=5
85
120
=====
Total:
3 hours, 25 minutesWith today flag
$ rl-timestamp -f testfile.txt --today
120
=====
Total:
2 hours, 0 minutesWith now flag
$ rl-timestamp -f testfile.txt --now
Duration so far:
0 hours and 17 minutesLicense
MIT © Richard Littauer