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

Method get_timezone_info

graphlite/src/storage/value.rs:227–234  ·  view source on GitHub ↗

Get timezone information if available

(&self)

Source from the content-addressed store, hash-verified

225
226 /// Get timezone information if available
227 pub fn get_timezone_info(&self) -> Option<String> {
228 match self {
229 Value::DateTime(_) => Some("UTC".to_string()),
230 Value::DateTimeWithFixedOffset(dt) => Some(dt.timezone().to_string()),
231 Value::DateTimeWithNamedTz(tz_name, _) => Some(tz_name.clone()),
232 _ => None,
233 }
234 }
235
236 /// Extract as array if possible
237 pub fn as_array(&self) -> Option<&Vec<Value>> {

Callers 2

executeMethod · 0.80
executeMethod · 0.80

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected