Check if a temporal type has time component
(&self)
| 1549 | |
| 1550 | /// Check if a temporal type has time component |
| 1551 | pub fn has_time_component(&self) -> bool { |
| 1552 | match self { |
| 1553 | TypeSpec::Date => false, |
| 1554 | TypeSpec::Time { .. } |
| 1555 | | TypeSpec::Timestamp { .. } |
| 1556 | | TypeSpec::ZonedTime { .. } |
| 1557 | | TypeSpec::ZonedDateTime { .. } |
| 1558 | | TypeSpec::LocalTime { .. } |
| 1559 | | TypeSpec::LocalDateTime { .. } => true, |
| 1560 | _ => false, |
| 1561 | } |
| 1562 | } |
| 1563 | |
| 1564 | /// Check if a temporal type has date component |
| 1565 | pub fn has_date_component(&self) -> bool { |