Temporal Data TypesΒΆ

Temporal data types are implemented by the neotime package. These provide a set of types compliant with ISO-8601 and Cypher, which are similar to those found in the built-in datetime module. Sub-second values are measured to nanosecond precision and the types are compatible with pytz.

The table below shows the general mappings between Cypher and the temporal types provided by the driver. In addition, the built-in temporal types can be passed as parameters and will be mapped appropriately.

Cypher

Python driver type

Python built-in type

tzinfo

Date

Date

datetime.date

Time

Time

datetime.time

not None

LocalTime

Time

datetime.time

None

DateTime

DateTime

datetime.datetime

not None

LocalDateTime

DateTime

datetime.datetime

None

Duration

Duration

datetime.timedelta