strings and modules

This commit is contained in:
2026-01-25 15:49:17 +00:00
parent 26f785a0ff
commit 82f597d052
5 changed files with 20 additions and 18 deletions

View File

@@ -4,7 +4,7 @@
// TODO: Bring `SystemTime` and `UNIX_EPOCH` from the `std::time` module into
// your scope. Bonus style points if you can do it with one line!
// use ???;
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()),