Function current_time

Source
pub fn current_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”