Answers for "rust get current date"

CSS
0

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