#unix-timestamp #human-readable #date #date-time #convert #epoch #conversion

app epoch-calc

Small utility for dealing with conversions between human readable dates and Unix Timestamps

3 releases

0.1.2 Aug 30, 2023
0.1.1 Aug 30, 2023
0.1.0 Aug 30, 2023

#101 in Value formatting

Download history 2/week @ 2024-02-19 14/week @ 2024-02-26 1/week @ 2024-03-11 56/week @ 2024-04-01

57 downloads per month

Custom license

6KB

epoch-calc

Small utility for dealing with conversions between human readable dates and Unix Timestamps.

This program takes a single command line argument, which is expected to either be a Unix Timestamp or a date/time string. It then either converts the timestamp to a human-readable format, or if the input is a date/time string, converts it to a Unix Timestamp. If the input is not recognized, the program prints an error message and exits with a non-zero status code.

Example Usages

$> epoch "8 30 2023 1620"
Unix Timestamp: 1693412400
$> epoch 1693412400
Human Readable: August 30, 2023 --> 16:20 Hours

Dependencies

~1MB
~18K SLoC