rune-epoch
Unix timestamp conversions — epoch to human-readable and back.
What it does
Converts Unix epoch values (seconds or milliseconds) to ISO 8601 UTC strings and back, using pure Rust standard library arithmetic — no external time crates required. Security researchers and log analysts use it to quickly translate raw timestamps found in binary files, database dumps, and network captures into readable dates.
Installation
[]
= "0.1"
Usage
Library
use ;
// Current time
println!;
// Epoch to string
assert_eq!;
assert_eq!;
assert_eq!;
// String to epoch
assert_eq!;
assert_eq!;
CLI
CLI
Output
$ rune-epoch
1704067200
$ rune-epoch 1704067200
2024-01-01T00:00:00Z
$ rune-epoch "2024-01-15T14:30:00Z"
1705329000
$ rune-epoch --millis
1704067200000
License
MIT