MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / rfc3339

Function rfc3339

atomic-canonical/src/delegation.rs:605–607  ·  view source on GitHub ↗

RFC 3339 with second precision — stable bytes for canonicalization.

(ts: DateTime<Utc>)

Source from the content-addressed store, hash-verified

603
604/// RFC 3339 with second precision — stable bytes for canonicalization.
605fn rfc3339(ts: DateTime<Utc>) -> String {
606 ts.to_rfc3339_opts(chrono::SecondsFormat::Secs, true)
607}
608
609fn as_object(value: &Value) -> Result<&Map<String, Value>> {
610 value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected