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

Method as_datetime

graphlite/src/storage/value.rs:192–198  ·  view source on GitHub ↗

Extract as datetime if possible (UTC only)

(&self)

Source from the content-addressed store, hash-verified

190
191 /// Extract as datetime if possible (UTC only)
192 pub fn as_datetime(&self) -> Option<&DateTime<Utc>> {
193 match self {
194 Value::DateTime(dt) => Some(dt),
195 Value::DateTimeWithNamedTz(_, dt) => Some(dt),
196 _ => None,
197 }
198 }
199
200 /// Extract as datetime with fixed offset if possible
201 pub fn as_datetime_with_offset(&self) -> Option<&DateTime<FixedOffset>> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected