Function get date

hello everyone my question is if rust have function for get date of device,i use rustc.

See SystemTime::now() and Instant::now().

There’s also a variety of crates for handling dates and time.

Thank you