format_iso8601_local

Function format_iso8601_local 

Source
pub fn format_iso8601_local(ts: TimeStamp) -> Result<String, Error>
Expand description

Format a timestamp according to ISO 8601 format in the local timezone.

This function returns the timestamp in the format: YYYY-MM-DDThh:mm:ss±hh:mm where the ±hh:mm part represents the timezone offset from UTC.

Example: “2025-05-20T09:30:45-05:00”

For more details on ISO 8601, see: https://en.wikipedia.org/wiki/ISO_8601