Function tendermint::serializers::timestamp::as_rfc3339_nanos[][src]

pub fn as_rfc3339_nanos(t: &DateTime<Utc>) -> String
Expand description

Serialization helper for converting a DateTime<Utc> object to a string.

This reproduces the behavior of Go’s time.RFC3339Nano format, ie. a RFC3339 date-time with left-padded subsecond digits without trailing zeros and no trailing dot.