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

Method as_date

crates/gitql-core/src/values/base.rs:412–417  ·  view source on GitHub ↗

Return List of [`i64`] represent the inner value of [`DateValue`] or None if this type it's called from wrong [`Value`]

(&self)

Source from the content-addressed store, hash-verified

410 /// Return List of [`i64`] represent the inner value of [`DateValue`]
411 /// or None if this type it's called from wrong [`Value`]
412 pub fn as_date(&self) -> Option<i64> {
413 if let Some(date_value) = self.as_any().downcast_ref::<DateValue>() {
414 return Some(date_value.timestamp);
415 }
416 None
417 }
418
419 /// Return true if this value is [`TimeValue`]
420 pub fn is_time(&self) -> bool {

Callers 15

group_eq_opMethod · 0.80
group_bang_eq_opMethod · 0.80
group_gt_opMethod · 0.80
group_gte_opMethod · 0.80
group_lt_opMethod · 0.80
group_lte_opMethod · 0.80
date_dayFunction · 0.80
date_daynameFunction · 0.80
date_monthnameFunction · 0.80
date_day_of_weekFunction · 0.80
date_day_of_monthFunction · 0.80
date_day_of_yearFunction · 0.80

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected