Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 533 Bytes

File metadata and controls

33 lines (25 loc) · 533 Bytes
layout api-command
language JavaScript
permalink api/javascript/timezone/
command timezone
io
time
time
related_commands
inTimezone now time
in_timezone/
now/
time/

Command syntax

{% apibody %} time.timezone() → string {% endapibody %}

Description

Return the timezone of the time object.

Example: Return all the users in the "-07:00" timezone.

r.table("users").filter( function(user) {
    return user("subscriptionDate").timezone().eq("-07:00")
})