MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / as_datetime_with_offset

Method as_datetime_with_offset

graphlite/src/storage/value.rs:201–206  ·  view source on GitHub ↗

Extract as datetime with fixed offset if possible

(&self)

Source from the content-addressed store, hash-verified

199
200 /// Extract as datetime with fixed offset if possible
201 pub fn as_datetime_with_offset(&self) -> Option<&DateTime<FixedOffset>> {
202 match self {
203 Value::DateTimeWithFixedOffset(dt) => Some(dt),
204 _ => None,
205 }
206 }
207
208 /// Extract as datetime with named timezone if possible
209 pub fn as_datetime_with_named_tz(&self) -> Option<(&str, &DateTime<Utc>)> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected