other_dates.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. }
  18. },
  19. {"type": "spaces", "value": ""}
  20. ]
  21. },
  22. {
  23. "query": "timestamp.to_hour:>2018-01-01T05:06:07+00:00",
  24. "result": [
  25. {"type": "spaces", "value": ""},
  26. {
  27. "type": "filter",
  28. "filter": "date",
  29. "negated": false,
  30. "key": {"type": "keySimple", "value": "timestamp.to_hour", "quoted": false},
  31. "operator": ">",
  32. "value": {
  33. "type": "valueIso8601Date",
  34. "value": "2018-01-01T05:06:07+00:00",
  35. "parsed": {"value": "2018-01-01T05:06:07.000Z"}
  36. }
  37. },
  38. {"type": "spaces", "value": ""}
  39. ]
  40. },
  41. {
  42. "query": "random:>2015-05-18",
  43. "result": [
  44. {"type": "spaces", "value": ""},
  45. {
  46. "type": "filter",
  47. "filter": "text",
  48. "negated": false,
  49. "key": {"type": "keySimple", "value": "random", "quoted": false},
  50. "operator": "",
  51. "value": {"type": "valueText", "value": ">2015-05-18", "quoted": false}
  52. },
  53. {"type": "spaces", "value": ""}
  54. ]
  55. }
  56. ]