rl-timestamp
Some simple timestamp tools
Install
$ npm install --save rl-timestamp
I would also add alias timestamp=rl-timestamp
to your bash profile.
Usage
var 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-timestamp
Default
$ rl-timestamp15-12-28 18:12
With file
$ rl-timestamp -f testfile.txt1115685120=====Total:6 hours, 12 minutes
no-sum
flag
With $ rl-timestamp -f testfile.txt --no-sum1115685120
since
flag
With $ rl-timestamp -f testfile.txt -since=585120=====Total:3 hours, 25 minutes
today
flag
With $ rl-timestamp -f testfile.txt --today120=====Total:2 hours, 0 minutes
now
flag
With $ rl-timestamp -f testfile.txt --nowDuration so far:0 hours and 17 minutes
License
MIT © Richard Littauer