epoch-cli

1.0.2 • Public • Published

Epoch CLI

This is a command line tool to show the current epoch time, pretty print epoch time, or parse a date string to epoch time.

Installation

$ npm i -g epoch-cli

Usage

Print the current epoch time:

$ epoch
1536852063

Pretty print the date from epoch time:

$ epoch 1536852063
2018-9-13 10:21:03

Print the epoch time from a date string:

$ epoch "2018/9/13 10:35:19"
1536852919

Testing

Requires bash

$ npm test

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i epoch-cli

      Weekly Downloads

      1

      Version

      1.0.2

      License

      MIT

      Unpacked Size

      3.37 kB

      Total Files

      5

      Last publish

      Collaborators

      • mckalexee