Skip to main content

encode_legacy_system_time

Function encode_legacy_system_time 

Source
pub fn encode_legacy_system_time<W: Write>(
    time: &SystemTime,
    writer: &mut W,
) -> Result<(), Error>
Expand description

Encodes a timestamp as the legacy (seconds, nanoseconds) SystemTime representation.

Existing encoded types use this only to preserve their stored representation. It panics when time precedes the Unix epoch.