MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / write_timestamp

Method write_timestamp

crates/pg/src/encoder.rs:110–113  ·  view source on GitHub ↗
(&mut self, value: Timestamp)

Source from the content-addressed store, hash-verified

108 }
109
110 fn write_timestamp(&mut self, value: Timestamp) -> Result<(), Self::Error> {
111 self.encoder.encode_field(&value.to_rfc3339()?)?;
112 Ok(())
113 }
114
115 fn write_duration(&mut self, value: TimeDuration) -> Result<(), Self::Error> {
116 self.encoder.encode_field(&value.to_iso8601())?;

Callers

nothing calls this directly

Calls 2

to_rfc3339Method · 0.80
OkFunction · 0.50

Tested by

no test coverage detected