2.0.2 • Published 1 year ago

timestamp-ng v2.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
1 year ago

timestamp-ng

A tool for showing timestamp.

npm GitHub Actions standard downloads

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
}

License

MIT