@kszongic/epoch-cli
v1.0.0
Published
Convert between epoch timestamps and human-readable dates from the command line
Downloads
34
Maintainers
Readme
@kszongic/epoch-cli
Convert between epoch timestamps and human-readable dates from the command line. Zero dependencies.
Install
npm install -g @kszongic/epoch-cliUsage
# Current time
epoch now
# Epoch seconds → date
epoch 1709683200
# Epoch milliseconds → date (auto-detected)
epoch 1709683200000
# Date string → epoch
epoch "2024-03-06T00:00:00Z"
epoch "March 6, 2024"
# Force milliseconds or seconds
epoch -ms 1709683200000
epoch -s 1709683200Output
ISO: 2024-03-06T00:00:00.000Z
UTC: Wed, 06 Mar 2024 00:00:00 GMT
Local: Wed Mar 06 2024 00:00:00 GMT+0000
Epoch (s): 1709683200
Epoch (ms): 1709683200000License
MIT © 2026 kszongic
