timestamp-ng
v2.0.2
Published
A tool for showing timestamp.
Downloads
4
Readme
timestamp-ng
A tool for showing timestamp.
Install
$ npm install timestamp-ng -g
Usage
For command line
Usage: tsn [options]
Options:
-d, --date_string the date string
-f, --format the date string format, defined see
http://momentjs.com/docs/#/parsing/string-format/
-s, --show_date_string show date string [default: false]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Examples:
tsn
tsn -d 20161121
tsn -d 2016-11-21 -f YYYY-MM-DD
For Node API
let tsng = require('timestamp-ng');
let ts = tsng(options);
options default:
{
date_string: THE_DATE_NOW,
format: '',
show_date_string: false
}