Skip to content

Commit

Permalink
Fixed documentation as described in rethinkdb#1291
Browse files Browse the repository at this point in the history
  • Loading branch information
clovergaze committed Sep 12, 2020
1 parent e8d9a05 commit 67dcf42
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 67dcf42

Please sign in to comment.