timestamp-ng

0.1.1 • Public • Published

timestamp-ng

A tool for showing timestamp.

npm travis standard downloads

Install


$ npm install timestamp-ng -g

Usage

For command line

Usage: timestamp-ng [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:
  timestamp-ng
  timestamp-ng -d 20161121
  timestamp-ng -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

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • henryhuang