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

Function date_day_of_year

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

Source from the content-addressed store, hash-verified

370}
371
372pub fn date_day_of_year(inputs: &[Box<dyn Value>]) -> Box<dyn Value> {
373 let date = inputs[0].as_date().unwrap();
374 let parsed_date = DateTime::from_timestamp(date, 0).unwrap();
375 Box::new(IntValue::new(parsed_date.ordinal().into()))
376}
377
378pub fn date_week_of_year(inputs: &[Box<dyn Value>]) -> Box<dyn Value> {
379 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…