Skip to content

Commit 6bae978

Browse files
robsdedudefbiville
andauthored
Datetime documentation and boundary fixes
Rework the whole datetime library documentation + Remove duplication of docs Fix time.Duration boundaries to match core product + Enable, add, and fix tests Co-authored-by: Florent Biville <445792+fbiville@users.noreply.github.com>
1 parent 8fc1981 commit 6bae978

File tree

13 files changed

+1387
-564
lines changed

13 files changed

+1387
-564
lines changed

docs/source/api.rst

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,30 +1129,7 @@ WGS84Point
11291129
Temporal Data Types
11301130
*******************
11311131
1132-
Cypher has built-in support for handling temporal values,
1133-
and the underlying database supports storing these temporal values as properties on nodes and relationships.
1134-
1135-
https://neo4j.com/docs/cypher-manual/current/syntax/temporal/
1136-
1137-
Temporal data types are implemented by the ``neo4j.time``
1138-
1139-
These provide a set of types compliant with ISO-8601 and Cypher, which are similar to those found in the built-in ``datetime`` module.
1140-
Sub-second values are measured to nanosecond precision and the types are compatible with `pytz <http://pytz.sourceforge.net/>`_.
1141-
1142-
The table below shows the general mappings between Cypher and the temporal types provided by the driver.
1143-
In addition, the built-in temporal types can be passed as parameters and will be mapped appropriately.
1144-
1145-
============= ============================ ================================== ============
1146-
Cypher Python driver type Python built-in type ``tzinfo``
1147-
============= ============================ ================================== ============
1148-
Date :class:`neo4j.time.Date` :class:`python:datetime.date`
1149-
Time :class:`neo4j.time.Time` :class:`python:datetime.time` ``not None``
1150-
LocalTime :class:`neo4j.time.Time` :class:`python:datetime.time` ``None``
1151-
DateTime :class:`neo4j.time.DateTime` :class:`python:datetime.datetime` ``not None``
1152-
LocalDateTime :class:`neo4j.time.DateTime` :class:`python:datetime.datetime` ``None``
1153-
Duration :class:`neo4j.time.Duration` :class:`python:datetime.timedelta`
1154-
============= ============================ ================================== ============
1155-
1132+
.. include:: types/temporal.rst
11561133
11571134
See topic :ref:`temporal-data-types` for more details.
11581135

0 commit comments

Comments
 (0)