timestamp-ng

2.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i timestamp-ng

Weekly Downloads

5

Version

2.0.2

License

MIT

Unpacked Size

15.2 kB

Total Files

19

Last publish

Collaborators

  • henryhuang