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

Method has_timezone

graphlite/src/ast/ast.rs:1539–1548  ·  view source on GitHub ↗

Check if a temporal type has timezone information

(&self)

Source from the content-addressed store, hash-verified

1537
1538 /// Check if a temporal type has timezone information
1539 pub fn has_timezone(&self) -> bool {
1540 match self {
1541 TypeSpec::Time { with_timezone, .. } => *with_timezone,
1542 TypeSpec::Timestamp { with_timezone, .. } => *with_timezone,
1543 TypeSpec::ZonedTime { .. } | TypeSpec::ZonedDateTime { .. } => true,
1544 TypeSpec::LocalTime { .. } | TypeSpec::LocalDateTime { .. } => false,
1545 TypeSpec::Date => false,
1546 _ => false,
1547 }
1548 }
1549
1550 /// Check if a temporal type has time component
1551 pub fn has_time_component(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected