Skip to content

Commit

Permalink
Merge pull request #1292 from clovergaze/time
Browse files Browse the repository at this point in the history
Fixed documentation as described in issue #1291
  • Loading branch information
gabor-boros authored Oct 16, 2020
2 parents 6d91026 + 67dcf42 commit c794f10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/java/dates-and-times/time.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ A few restrictions exist on the arguments:
- `minutes` is an integer.
- `seconds` is a double. Its value will be rounded to three decimal places
(millisecond-precision).
- `timezone` can be `'Z'` (for UTC) or a string with the format `±[hh]:[mm]`.
- `timezone` can be `"Z"` (for UTC) or a string with the format `±[hh]:[mm]`.


__Example:__ Update the birthdate of the user "John" to November 3rd, 1986 UTC.

```java
r.table("user").get("John").update(
r.hashMap("birthdate", r.time(1986, 11, 3, 'Z'))
r.hashMap("birthdate", r.time(1986, 11, 3, "Z"))
).run(conn);
```

0 comments on commit c794f10

Please sign in to comment.