Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (25 sloc) 533 Bytes
layout language permalink command io related_commands
api-command
JavaScript
api/javascript/timezone/
timezone
time
time
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")
})
You can’t perform that action at this time.