起航学习网

- 让每个人都能学到最前沿新知识、新技能!
起航学习网
当前位置: 起航学习网 > 职业教育 > during是什么意思

during是什么意思

时间:2019-03-15 17:58:06来源:编程网 作者:IT培训网 已有: 名学员访问该课程

  快捷搜索:during(1)

前言:Example:Retrieve all the posts that were posted between December 1st, 2013 (inclusive) and December 10th, 2013 (exclusive).

during

ReQL command: during

Command syntax

time.during(start_time, end_time[, :left_bound => "closed", :right_bound => "open"]) → bool

Description

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

Get more help

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://www.epx365.cn/qgtk/201947291.html

来源标题:during是什么意思


你也许会喜欢如下的文章?
(责任编辑:IT培训网)
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:点击我更换图片
培训学校
IT培训网 访问该机构站点 报名留言 加为好友 用户等级:注册会员 用户级别:10 机构名称:IT培训网 联 系 人:罗老师 联系电话: 联系手机:13783581536 在线客服:起航学习网客服 在 线 QQ:起航学习网客服 电子邮件:3158895217@qq.com 网站域名:http://www.cnitedu.cn 注册时间:2016-07-18 11:07 最后登录:2019-03-15 17:03
推荐内容