Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 412 Bytes

File metadata and controls

27 lines (21 loc) · 412 Bytes
layout api-command
language Java
permalink api/java/year/
command year
related_commands
now time
now/
time/

Command syntax

{% apibody %} time.year() → number {% endapibody %}

Description

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);