Return List of [`String`] represent the inner value of [`DateValue`] or None if this type it's called from wrong [`Value`]
(&self)
| 424 | /// Return List of [`String`] represent the inner value of [`DateValue`] |
| 425 | /// or None if this type it's called from wrong [`Value`] |
| 426 | pub fn as_time(&self) -> Option<String> { |
| 427 | if let Some(time_value) = self.as_any().downcast_ref::<DateValue>() { |
| 428 | return Some(time_value.timestamp.to_string()); |
| 429 | } |
| 430 | None |
| 431 | } |
| 432 | |
| 433 | /// Return true if this value is [`DateTimeValue`] |
| 434 | pub fn is_date_time(&self) -> bool { |
no test coverage detected