other_dates.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. [
  2. {
  3. "desc": "test date format with other name",
  4. "query": "timestamp:>2015-05-18",
  5. "result": [
  6. {"type": "spaces", "value": ""},
  7. {
  8. "type": "filter",
  9. "filter": "date",
  10. "negated": false,
  11. "key": {"type": "keySimple", "value": "timestamp", "quoted": false},
  12. "operator": ">",
  13. "value": {
  14. "type": "valueIso8601Date",
  15. "value": "2015-05-18",
  16. "parsed": {"value": "2015-05-18T00:00:00.000Z"},
  17. "date": "2015-05-18",
  18. "time": null,
  19. "tz": null
  20. }
  21. },
  22. {"type": "spaces", "value": ""}
  23. ]
  24. },
  25. {
  26. "query": "timestamp.to_hour:>2018-01-01T05:06:07+00:00",
  27. "result": [
  28. {"type": "spaces", "value": ""},
  29. {
  30. "type": "filter",
  31. "filter": "date",
  32. "negated": false,
  33. "key": {"type": "keySimple", "value": "timestamp.to_hour", "quoted": false},
  34. "operator": ">",
  35. "value": {
  36. "type": "valueIso8601Date",
  37. "value": "2018-01-01T05:06:07+00:00",
  38. "parsed": {"value": "2018-01-01T05:06:07.000Z"},
  39. "date": "2018-01-01",
  40. "time": "05:06:07",
  41. "tz": "+00:00"
  42. }
  43. },
  44. {"type": "spaces", "value": ""}
  45. ]
  46. },
  47. {
  48. "query": "random:>2015-05-18",
  49. "result": [
  50. {"type": "spaces", "value": ""},
  51. {
  52. "type": "filter",
  53. "filter": "text",
  54. "negated": false,
  55. "key": {"type": "keySimple", "value": "random", "quoted": false},
  56. "operator": "",
  57. "value": {"type": "valueText", "value": ">2015-05-18", "quoted": false}
  58. },
  59. {"type": "spaces", "value": ""}
  60. ]
  61. }
  62. ]