This repository has been archived on 2025-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
2024-10-29 11:28:19 +01:00

9 lines
265 B
Rust

use std::time::{SystemTime, UNIX_EPOCH};
fn main() {
match SystemTime::now().duration_since(UNIX_EPOCH) {
Ok(n) => println!("1970-01-01 00:00:00 UTC was {} seconds ago!", n.as_secs()),
Err(_) => panic!("SystemTime before UNIX EPOCH!"),
}
}