(inputs: &[Box<dyn Value>])
| 345 | } |
| 346 | |
| 347 | pub fn date_minute(inputs: &[Box<dyn Value>]) -> Box<dyn Value> { |
| 348 | let date = inputs[0].as_date_time().unwrap(); |
| 349 | let date_time = DateTime::from_timestamp(date, 0); |
| 350 | let dt = date_time.unwrap().time(); |
| 351 | Box::new(IntValue::new(dt.minute() as i64)) |
| 352 | } |
| 353 | |
| 354 | pub fn date_is_date(inputs: &[Box<dyn Value>]) -> Box<dyn Value> { |
| 355 | let is_date = inputs[0].data_type().is_date(); |
nothing calls this directly
no test coverage detected
searching dependent graphs…