Check if a temporal type has timezone information
(&self)
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected