Skip to main content

write_local_time

Function write_local_time 

Source
pub fn write_local_time(
    output: &mut dyn Write,
    zone: &TimeZone,
    utc: i64,
) -> Result
Expand description

Write the local time of utc (seconds since the Unix epoch) in zone, for example 2026-03-29 03:00:00 CEST (UTC+02:00). Settings and the shell share it, so it takes a dyn writer and is linked once.