(inputs: &[Box<dyn Value>])
| 293 | } |
| 294 | |
| 295 | pub fn date_day(inputs: &[Box<dyn Value>]) -> Box<dyn Value> { |
| 296 | let date = inputs[0].as_date().unwrap(); |
| 297 | let parsed_date = DateTime::from_timestamp(date, 0).unwrap(); |
| 298 | Box::new(IntValue::new(parsed_date.day().into())) |
| 299 | } |
| 300 | |
| 301 | pub fn date_dayname(inputs: &[Box<dyn Value>]) -> Box<dyn Value> { |
| 302 | let date = inputs[0].as_date().unwrap(); |
nothing calls this directly
no test coverage detected
searching dependent graphs…