指定为秒时,Gerrit时间搜索运算符不起作用 [英] Gerrit time search operators is not working when specify to second
问题描述
如果我使用
/changes/?q=status:merged+after:2018-08-25
它可以返回结果,
但是,如果使用
/changes/?q=status:merged+after:2018-08-25 00:00:00
它返回[]
根据文档,能够像这样搜索时间.
According to document, it is able to search time like this.
[[after_since]]
after:'TIME'/since:'TIME'::
+
Changes modified after the given 'TIME', inclusive. Must be in the
format `2006-01-02[ 15:04:05[.890][ -0700]]`; omitting the time defaults
to 00:00:00 and omitting the timezone defaults to UTC.
指定秒数时如何查询?我的参数格式不正确吗?
[[after_since]]
after:'TIME'/since:'TIME'::
+
Changes modified after the given 'TIME', inclusive. Must be in the
format `2006-01-02[ 15:04:05[.890][ -0700]]`; omitting the time defaults
to 00:00:00 and omitting the timezone defaults to UTC.
How to query when specify time to second? Is my format of parameters wrong?
推荐答案
使用时:
/changes/?q=status:merged+after:2018-08-25 00:00:00
仅将2018-08-25
部分用作after:
值. 00:00:00
部分被用作自由文本查询词.
only the 2018-08-25
part is being used as the after:
value. The 00:00:00
part is being used as a free text query term.
after:
的值应用引号引起来:
The value of after:
should be enclosed in quotes:
/changes/?q=status:merged+after:"2018-08-25 00:00:00"
这篇关于指定为秒时,Gerrit时间搜索运算符不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!