strftime_local

Function strftime_local 

Source
pub fn strftime_local(
    format: impl AsRef<str>,
    ts_seconds: TimeStamp,
) -> Result<String, Error>
Expand description

Return the current time in the specified format, in the local time zone. The time is assumed to be the number of seconds since the Epoch.

This function will validate the format string before attempting to format the time.