(inputs: &[Box<dyn Value>])
| 364 | } |
| 365 | |
| 366 | pub fn date_day_of_month(inputs: &[Box<dyn Value>]) -> Box<dyn Value> { |
| 367 | let date = inputs[0].as_date().unwrap(); |
| 368 | let parsed_date = DateTime::from_timestamp(date, 0).unwrap(); |
| 369 | Box::new(IntValue::new(parsed_date.day().into())) |
| 370 | } |
| 371 | |
| 372 | pub fn date_day_of_year(inputs: &[Box<dyn Value>]) -> Box<dyn Value> { |
| 373 | let date = inputs[0].as_date().unwrap(); |
nothing calls this directly
no test coverage detected
searching dependent graphs…