iso8601

ReQL command: iso8601

Command syntax

r.iso8601(string) → time

Description

Create a time object based on an ISO 8601 date-time string (e.g. ‘2013-01-01T01:01:01+00:00’). RethinkDB supports all valid ISO 8601 formats except for week dates. Read more about the ISO 8601 format at Wikipedia.

If you pass an ISO 8601 string without a time zone, you must specify the time zone with the default_timezone optArg.

Example: Update the time of John’s birth.

r.table("user").get("John").update(
    r.hashMap("birth", r.iso8601("1986-11-03T08:30:00-07:00"))
).run(conn);

Related commands

Get more help

Couldn't find what you were looking for?

© RethinkDB contributors
Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
https://rethinkdb.com/api/java/iso8601/

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部