epoch-calc

Crates.ioepoch-calc
lib.rsepoch-calc
version0.1.2
sourcesrc
created_at2023-08-30 20:16:30.047244
updated_at2023-08-30 20:27:46.701532
descriptionSmall utility for dealing with conversions between human readable dates and Unix Timestamps.
homepage
repository
max_upload_size
id959244
size14,018
(roomtin)

documentation

README

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
Commit count: 0

cargo fmt