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

Function date_minute

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

Source from the content-addressed store, hash-verified

345}
346
347pub 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
354pub fn date_is_date(inputs: &[Box<dyn Value>]) -> Box<dyn Value> {
355 let is_date = inputs[0].data_type().is_date();

Callers

nothing calls this directly

Calls 1

as_date_timeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…