diff --git a/jsManual/asciidoc/cypher-workflow.adoc b/jsManual/asciidoc/cypher-workflow.adoc index 084f9ecb..d2b2027b 100644 --- a/jsManual/asciidoc/cypher-workflow.adoc +++ b/jsManual/asciidoc/cypher-workflow.adoc @@ -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