apoc.temporal.toZonedTemporalFunctionDeprecated in 25
|
This function is deprecated.
Use Cypher’s corresponding temporal type constructor instead, for example |
Syntax |
|
||
Description |
Parses the given date |
||
Arguments |
Name |
Type |
Description |
|
|
The date string to be parsed. |
|
|
|
The format of the given date string. The default is: |
|
|
|
The timezone the given string is in. The default is: |
|
Returns |
|
||
Usage Examples
apoc.temporal.toZonedTemporal
RETURN apoc.temporal.toZonedTemporal('2012-12-23 23:59:59',"yyyy-MM-dd HH:mm:ss") AS output;
Cypher’s pattern constructors
RETURN datetime('2012-12-23 23:59:59',"yyyy-MM-dd HH:mm:ss") AS output;
| output |
|---|
2012-12-23T23:59:59Z[UTC] |
apoc.temporal.toZonedTemporal
RETURN apoc.temporal.toZonedTemporal('2012-12-23 23:59:59',"yyyy-MM-dd HH:mm:ss", "+04:30") AS output;
Cypher’s pattern constructors
RETURN datetime({datetime: localdatetime('2012-12-23 23:59:59',"yyyy-MM-dd HH:mm:ss"), timezone: "+04:30"}) AS output;
| output |
|---|
2012-12-24T04:29:59+04:30 |
apoc.temporal.toZonedTemporal
RETURN apoc.temporal.toZonedTemporal('2012-12-23 23:59:59',"yyyy-MM-dd HH:mm:ss", "Pacific/Auckland") AS output;
Cypher’s pattern constructors
RETURN datetime({datetime: localdatetime('2012-12-23 23:59:59',"yyyy-MM-dd HH:mm:ss"), timezone: "Pacific/Auckland"}) AS output;
| output |
|---|
2012-12-23T23:59:59+13:00[Pacific/Auckland] |