Rust Timestamp

[Solved] Rust Timestamp | Rust - Code Explorer | yomemimo.com
Question : rust timestamp

Answered by : siew-chong-che

use chrono::Utc;
let dt = Utc::now();
let timestamp: i64 = dt.timestamp();
println!("Current timestamp is {}", timestamp);

Source : https://stackoverflow.com/questions/57707966/how-to-get-timestamp-of-the-current-date-and-time-in-rust | Last Update : Mon, 23 May 22

Answers related to rust timestamp

Code Explorer Popular Question For Rust