time::serde::timestamp::nanoseconds

Function serialize

Source
pub fn serialize<S: Serializer>(
    datetime: &OffsetDateTime,
    serializer: S,
) -> Result<S::Ok, S::Error>
Available on crate feature serde only.
Expand description

Serialize an OffsetDateTime as its Unix timestamp with nanoseconds