time

Function time 

Source
pub fn time() -> String
Expand description

Gets the current time, including the date and time.

§Returns

  • String - The formatted time as “YYYY-MM-DD HH:MM:SS”