Crates.io | epoch-calc |
lib.rs | epoch-calc |
version | 0.1.2 |
source | src |
created_at | 2023-08-30 20:16:30.047244 |
updated_at | 2023-08-30 20:27:46.701532 |
description | Small utility for dealing with conversions between human readable dates and Unix Timestamps. |
homepage | |
repository | |
max_upload_size | |
id | 959244 |
size | 14,018 |
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.
$> epoch "8 30 2023 1620"
Unix Timestamp: 1693412400
$> epoch 1693412400
Human Readable: August 30, 2023 --> 16:20 Hours