Expand description
Temporal functions for Cypher query evaluation.
Provides date, time, datetime, and duration constructors along with extraction functions compatible with OpenCypher temporal types.
Structs§
- Cypher
Duration - Represents a Cypher duration with separate month, day, and nanosecond components.
Enums§
- Temporal
Type - Classification of temporal types for dispatch.
- Timezone
Info - Parsed timezone information.
Functions§
- add_
cypher_ duration_ to_ date - Add a CypherDuration to a date string, returning the result date string.
- add_
cypher_ duration_ to_ datetime - Add a CypherDuration to a datetime-with-timezone string, returning the result string.
- add_
cypher_ duration_ to_ localdatetime - Add a CypherDuration to a local datetime string, returning the result string.
- add_
cypher_ duration_ to_ localtime - Add a CypherDuration to a local time string, returning the result time string.
- add_
cypher_ duration_ to_ time - Add a CypherDuration to a time-with-timezone string, returning the result time string.
- add_
duration_ to_ date - Add duration (microseconds) to date.
- add_
duration_ to_ datetime - Add duration (microseconds) to datetime.
- add_
months_ to_ date - Add months to a date with day-of-month clamping.
- classify_
temporal - Classify a string value into its temporal type using pattern detection.
- datetime_
difference - Subtract two datetimes, return duration in microseconds.
- duration_
to_ micros - Convert a duration value (ISO 8601 string or i64 micros) to microseconds.
- eval_
datetime_ function - eval_
datetime_ function_ with_ clock - Evaluate a temporal function using a frozen statement clock.
- eval_
duration_ accessor - Evaluate a duration component accessor using Euclidean division.
- eval_
temporal_ accessor - Evaluate a temporal component accessor.
- eval_
temporal_ accessor_ value - Evaluate a temporal component accessor on a
Value. - is_
date_ value - Check if value is a date string or temporal date.
- is_
datetime_ value - Check if value is a datetime string or temporal datetime.
- is_
duration_ accessor - Check if a property name is a valid duration accessor.
- is_
duration_ or_ micros - Check if a value is a duration string OR an integer (microseconds).
- is_
duration_ string - Check if a string looks like a duration value.
- is_
duration_ value - Check if value is a duration (ISO 8601 string starting with ‘P’ or temporal duration).
- is_
temporal_ accessor - Check if a property name is a valid temporal accessor.
- is_
temporal_ string - Check if a string looks like a temporal value (date, time, datetime).
- parse_
datetime_ utc - Parse a datetime string into a
DateTime<Utc>. - parse_
datetime_ with_ tz - Parse a datetime string and extract date, time, and timezone info.
- parse_
duration_ from_ value - Parse a duration from a Value, handling temporal durations, ISO 8601 strings, and integer microseconds.
- parse_
duration_ to_ cypher - Parse a duration string to a CypherDuration with preserved components.
- parse_
duration_ to_ micros - Parse a duration string to microseconds.