Return List of [`i64`] represent the inner value of [`DateValue`] or None if this type it's called from wrong [`Value`]
(&self)
| 410 | /// Return List of [`i64`] represent the inner value of [`DateValue`] |
| 411 | /// or None if this type it's called from wrong [`Value`] |
| 412 | pub fn as_date(&self) -> Option<i64> { |
| 413 | if let Some(date_value) = self.as_any().downcast_ref::<DateValue>() { |
| 414 | return Some(date_value.timestamp); |
| 415 | } |
| 416 | None |
| 417 | } |
| 418 | |
| 419 | /// Return true if this value is [`TimeValue`] |
| 420 | pub fn is_time(&self) -> bool { |
no test coverage detected