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

Method as_date_time

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

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

(&self)

Source from the content-addressed store, hash-verified

438 /// Return List of [`i64`] represent the value of [`DateTimeValue`]
439 /// or None if this type it's called from wrong [`Value`]
440 pub fn as_date_time(&self) -> Option<i64> {
441 if let Some(date_time_value) = self.as_any().downcast_ref::<DateTimeValue>() {
442 return Some(date_time_value.value);
443 }
444 None
445 }
446
447 /// Return true if this value is [`IntervalValue`]
448 pub fn is_interval(&self) -> bool {

Callers 9

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_extract_dateFunction · 0.80
date_hourFunction · 0.80
date_minuteFunction · 0.80

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected