FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

sindresorhus/date-now-cli: Prints the current date and time as a UNIX timestamp or custom format · GitHub

date-now-cli

Prints the current date and time as a UNIX timestamp or custom format

Similar to the date +%s command, but cross-platform and prints milliseconds instead of seconds.

Install

$ npm install --global date-now-cli

Or for a one-time run:

$ npx date-now-cli

Usage

$ date-now --help

  Usage
    $ date-now

  Options
    --format=<string>, -f  Format the date

  Examples
    $ date-now
    1524733860619
    $ date-now --format='dd.MM.yyyy'
    11.08.2021

  See the date-fns docs for supported formats

Related

  • delay-cli - Delay execution for a given amount of seconds

About

Prints the current date and time as a UNIX timestamp or custom format

Topics

Resources

Code of conduct

Contributing

Stars

47 stars

Watchers

3 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL