0.0.7 • Published 8 years ago

rl-timestamp v0.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

rl-timestamp Build Status

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 = 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-timestamp

Default

$ rl-timestamp
15-12-28 18:12

With file

$ rl-timestamp -f testfile.txt
111
56
85
120
=====
Total:
6 hours, 12 minutes

With no-sum flag

$ rl-timestamp -f testfile.txt --no-sum
111
56
85
120

With since flag

$ rl-timestamp -f testfile.txt -since=5
85
120
=====
Total:
3 hours, 25 minutes

With today flag

$ rl-timestamp -f testfile.txt --today
120
=====
Total:
2 hours, 0 minutes

With now flag

$ rl-timestamp -f testfile.txt --now
Duration so far:
0 hours and 17 minutes

License

MIT © Richard Littauer

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago