temporal

The temporal module enables more sophisticated manipulation, conversion, and calculation of date and time. These functions handle temporal (time-related) operations and offer extended capabilities compared to the date functions.

TraitValue
Module typeutil
ImplementationC++
Graph directiondirected/undirected
Edge weightsweighted/unweighted
Parallelismsequential

Procedures

format()

The procedure formats a temporal value.

Input:

Output:

  • formatted: str ➡ The temporal value in the specified format.

Usage:

To reformat a temporal values, use the following query:

CALL temporal.format(duration({minute: 127}), "%H:%M:%S")
YIELD formatted
RETURN formatted;

Result:

+-----------------------+
| formatted             |
+-----------------------+
| "02:07:00"            |
+-----------------------+