| layout | api-command | ||||
|---|---|---|---|---|---|
| language | Java | ||||
| permalink | api/java/year/ | ||||
| command | year | ||||
| related_commands |
|
{% apibody %} time.year() → number {% endapibody %}
Return the year of a time object.
Example: Retrieve all the users born in 1986.
r.table("users").filter(
user -> user.g("birthdate").year().eq(1986)
}).run(conn);