Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions jsManual/asciidoc/cypher-workflow.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,79 @@ include::{common-content}/cypher-workflow.adoc[tag=type-mapping]
======


[[js-driver-temporal-types]]
=== Temporal Types

This section lists some basic usage of the temporal types provided by the JavaScript Driver.


[[js-driver-temporal-types-datetime]]
==== `dateTime`

Represents an instant capturing the date, the time, and the timezone identifier.

[source, javascript]
----
include::{javascript-examples}/examples.test.js[tags=temporal-types-datetime]
----


[[js-driver-temporal-types-date]]
==== `date`

Represents an instant capturing the date, but not the time, nor the timezone.

[source, javascript]
----
include::{javascript-examples}/examples.test.js[tags=temporal-types-date]
----


[[js-driver-temporal-types-time]]
==== `time`

Represents an instant capturing the time of day, and the timezone offset in seconds, but not the date.

[source, javascript]
----
include::{javascript-examples}/examples.test.js[tags=temporal-types-time]
----


[[js-driver-temporal-types-localdatetime]]
==== `localDateTime`

Represents an instant capturing the date and the time, but not the timezone.

[source, javascript]
----
include::{javascript-examples}/examples.test.js[tags=temporal-types-localdatetime]
----


[[js-driver-temporal-types-localtime]]
==== `localTime`

Represents an instant capturing the time of day, but not the date, nor the timezone.

[source, javascript]
----
include::{javascript-examples}/examples.test.js[tags=temporal-types-localtime]
----


[[js-driver-temporal-types-duration]]
==== `duration`

Represents an ISO 8601 duration.
Contains both date-based values (years, months, days) and time-based values (seconds, nanoseconds).

[source, javascript]
----
include::{javascript-examples}/examples.test.js[tags=temporal-types-duration]
----


[[js-driver-exceptions-errors]]
== Exceptions and error handling

Expand Down