MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / date_day

Function date_day

crates/gitql-std/src/datetime/mod.rs:295–299  ·  view source on GitHub ↗
(inputs: &[Box<dyn Value>])

Source from the content-addressed store, hash-verified

293}
294
295pub 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
301pub fn date_dayname(inputs: &[Box<dyn Value>]) -> Box<dyn Value> {
302 let date = inputs[0].as_date().unwrap();

Callers

nothing calls this directly

Calls 1

as_dateMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…