timestamp.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. [
  2. {
  3. "desc": "test date format",
  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": {"type": "valueIso8601Date", "value": "2015-05-18T00:00:00.000Z"}
  14. },
  15. {"type": "spaces", "value": ""}
  16. ]
  17. },
  18. {
  19. "desc": "test date time format",
  20. "query": "timestamp:>2015-05-18T10:15:01",
  21. "result": [
  22. {"type": "spaces", "value": ""},
  23. {
  24. "type": "filter",
  25. "filter": "date",
  26. "negated": false,
  27. "key": {"type": "keySimple", "value": "timestamp", "quoted": false},
  28. "operator": ">",
  29. "value": {"type": "valueIso8601Date", "value": "2015-05-18T10:15:01.000Z"}
  30. },
  31. {"type": "spaces", "value": ""}
  32. ]
  33. },
  34. {
  35. "desc": "test date time format w microseconds",
  36. "query": "timestamp:>2015-05-18T10:15:01.103",
  37. "result": [
  38. {"type": "spaces", "value": ""},
  39. {
  40. "type": "filter",
  41. "filter": "date",
  42. "negated": false,
  43. "key": {"type": "keySimple", "value": "timestamp", "quoted": false},
  44. "operator": ">",
  45. "value": {"type": "valueIso8601Date", "value": "2015-05-18T10:15:01.103Z"}
  46. },
  47. {"type": "spaces", "value": ""}
  48. ]
  49. },
  50. {
  51. "desc": "test date time format w microseconds and utc marker",
  52. "query": "timestamp:>2015-05-18T10:15:01.103Z",
  53. "result": [
  54. {"type": "spaces", "value": ""},
  55. {
  56. "type": "filter",
  57. "filter": "date",
  58. "negated": false,
  59. "key": {"type": "keySimple", "value": "timestamp", "quoted": false},
  60. "operator": ">",
  61. "value": {"type": "valueIso8601Date", "value": "2015-05-18T10:15:01.103Z"}
  62. },
  63. {"type": "spaces", "value": ""}
  64. ]
  65. }
  66. ]