ReQL command: time
Command syntax
r.time(year, month, day[, hour, minute, second], timezone) → time
Description
Create a time object for a specific time.
A few restrictions exist on the arguments:
yearis an integer between 1400 and 9,999.monthis an integer between 1 and 12.dayis an integer between 1 and 31.houris an integer.minutesis an integer.secondsis a double. Its value will be rounded to three decimal places (millisecond-precision).timezonecan 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.
r.table("user").get("John").update({"birthdate": r.time(1986, 11, 3, 'Z')}).run(conn)
Get more help
Couldn't find what you were looking for?
- Ask a question on Stack Overflow
- Chat with us and our community on Slack
- Talk to the team on IRC on #rethinkdb@freenode.net — via Webchat
- Ping @rethinkdb on Twitter
- Post an issue on the documentation issue tracker on GitHub
Contribute: edit this page or open an issue