Answers for "rust get system time"

CSS
1

rust get current date

use chrono;

fn main() {
    println!("{:?}", chrono::offset::Local::now());
    println!("{:?}", chrono::offset::Utc::now());
}
Posted by: Guest on October-15-2020

Browse Popular Code Answers by Language