A command-line utility that converts UNIX timestamps into human-readable dates.
Example:
➜ todate 1697745797056
2023-10-19T22:03:17.056+02:00
The todate
utility is a simple yet powerful tool designed to make the task of converting UNIX timestamps to standard date formats effortless. Whether you are debugging, logging, or just curious, todate
has you covered.
If you have Rust's package manager cargo
installed, you can quickly install todate
:
cargo install todate
Clone the repository:
https://github.com/PierreLeGuen/todate.git
Navigate to the project directory:
cd todate
Build and install
cargo install --path .
To convert a UNIX timestamp to a human-readable date:
todate <timestamp>
- Supports timestamps in seconds, milliseconds, or nanoseconds.
- Automatically detects the precision of the provided timestamp.
- Displays the date and time in the system's local timezone.