如何在浮动日期之间查询?

How to query between floating dates?

我正在查询 dataset. From the documentation I know there is a variable disp_date (floating_timestamp). From the documentation 我想我应该可以在 disp_date 上使用 between ... and ...

假设我想要从 2016-01-01 到 2016-02-31。我尝试了以下方法:

https://data.brla.gov/resource/4w4d-4es6.json?disp_date between 2016-01-01T00:00:00.000 and 2016-02-01T00:00:00.000

{
  "error" : true,
  "message" : "Unrecognized arguments [disp_date between 2016-01-01T00:00:00.000 and 2016-02-01T00:00:00.000]"
}

您似乎缺少开头的 $where 语句。另外,需要一些关于日期的引号。这对我有用:

https://data.brla.gov/resource/4w4d-4es6.json?$where=disp_date between '2016-01-01T00:00:00.000' and '2016-02-01T00:00:00.000'

使用HTML编码:

https://data.brla.gov/resource/4w4d-4es6.json?$where=disp_date%20between%20%272016-01-01T00:00:00.000%27%20and%20%272016-02-01T00:00:00.000%27