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

Method as_time

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

Return List of [`String`] 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

424 /// Return List of [`String`] represent the inner value of [`DateValue`]
425 /// or None if this type it's called from wrong [`Value`]
426 pub fn as_time(&self) -> Option<String> {
427 if let Some(time_value) = self.as_any().downcast_ref::<DateValue>() {
428 return Some(time_value.timestamp.to_string());
429 }
430 None
431 }
432
433 /// Return true if this value is [`DateTimeValue`]
434 pub fn is_date_time(&self) -> bool {

Callers 6

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

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected