Skip to content

A tiny convenience tool to convert time formats.

Notifications You must be signed in to change notification settings

snamber/reformat-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reformat-time

A tiny convenience tool to convert time formats.

Example:
    reformat-time -u -- "$(date)"

Flags:
   --version       Displays the program version string.
-h --help          Displays help with available flag, subcommand, and positional value parameters.
   --rfc3339-utc   Format time as RFC 3339 UTC (default)
-r --rfc3339       Format time as RFC 3339
-u --unix          Format time as unix time
-m --unix-milli    Format time as unix milli
-f --unix-float    Format time as unix float
-id --uuid         Format time as UUID (ULID)

reformat-time currently parses:

  • RFC3339Nano
  • UnixDate
  • Unix timestamp
  • Unix millisecond timestamp
  • Unix float timestamp
  • ULID UUID (Universally Unique Lexicographically Sortable Identifier)

About

A tiny convenience tool to convert time formats.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages