前言:Example:Retrieve all the posts that were posted between December 1st, 2013 (inclusive) and December 10th, 2013 (exclusive).
time.during(start_time, end_time[, :left_bound => "closed", :right_bound => "open"]) → bool
Return whether a time is between two other times.
By default, this is inclusive of the start time and exclusive of the end time. Set left_boundand right_boundto explicitly include (closed) or exclude (open) that endpoint of the range.
Example:Retrieve all the posts that were posted between December 1st, 2013 (inclusive) and December 10th, 2013 (exclusive).
r.table("posts").filter{ |post|
post['date'].during(r.time(2013, 12, 1, "Z"), r.time(2013, 12, 10, "Z"))
}.run(conn)
Example:Retrieve all the posts that were posted between December 1st, 2013 (exclusive) and December 10th, 2013 (inclusive).
r.table("posts").filter{ |post|
post['date'].during(r.time(2013, 12, 1, "Z"), r.time(2013, 12, 10, "Z"),
:left_bound => "open",
:right_bound => "closed")
}.run(conn)
now
time
in_timezone
Couldn't find what you were looking for?
Ask a questionon Stack Overflow
Chat with usand our community on Slack
Talk to the team on IRCon #rethinkdb@freenode.net— via Webchat
Ping@rethinkdbon Twitter
Post an issueon the documentation issue trackeron GitHub
文章出自:http://qh.itpxw.cn/qgtk/201947291.html
文章标题:during是什么意思
免责声明:本站文章均由入驻起航学习网的会员所发或者网络转载,所述观点仅代表作者本人,不代表起航学习网立场。如有侵权或者其他问题,请联系举报,必删。侵权投诉
IT培训网 访问该机构站点 报名留言 加为好友 用户等级:注册会员
用户级别:10
机构名称:IT培训网
联 系 人:罗老师
联系电话:13783581536
联系手机:13783581536
在线客服:
在 线 QQ:
电子邮件:
网站域名:http://www.itpxw.cn
注册时间:2016-07-18 11:07
最后登录:2024-02-20 13:02
胡贝儿国际形体礼仪怎么样 胡贝儿国际形体礼仪女子学堂怎么...
单位职务怎么填写才是正确的 很多小伙伴在填资料表的时候都...
大夫和医生两个称谓有什么区别 很多小伙伴在医院看病的时候...
高铁一般都在什么招收乘务员 坐飞机和高铁离不开的就是乘务...