Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[memgraph-2-17 < T782] Fix the Cypher examples for ZonedDateTime #782

Merged
merged 1 commit into from
May 21, 2024
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
8 changes: 4 additions & 4 deletions pages/fundamentals/data-types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ calling the `datetime()` function.

The `datetime()` function takes strings that follow the ISO 8601 standard. An
ISO 8601-compliant string that stands for a zoned datetime value has two parts:
`<DateTime><timezone>`. The first part is defined the same way as with
`<DateTime><timezone>`. The first part is defined the same way as
[LocalDateTime](#localdatetime), and the second part follows one of the given
timezone formats:
* `Z`
Expand All @@ -563,8 +563,8 @@ where `ZoneName` is a timezone name from the
Examples:

```cypher
CREATE (:Flight {AIR123: datetime("2024-04-21T14:15:00-08:00[America/Los_Angeles]")});
CREATE (:Flight {AIR123: datetime("2021-04-21Z")});
CREATE (:Flight {AIR123: datetime("2024-04-21T14:15:00-07:00[America/Los_Angeles]")});
CREATE (:Flight {AIR123: datetime("2021-04-21T14:15:00Z")});
```

**Maps**
Expand All @@ -591,7 +591,7 @@ that reflects the current date and time in UTC.
Example:

```cypher
CREATE (:Flights {AIR123: datetime()});
CREATE (:Flight {AIR123: datetime()});
```

You can access the individual fields of ZonedDateTime through its properties:
Expand Down