timestamp.json 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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": {
  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. "desc": "test date time format",
  27. "query": "timestamp:>2015-05-18T10:15:01",
  28. "result": [
  29. {"type": "spaces", "value": ""},
  30. {
  31. "type": "filter",
  32. "filter": "date",
  33. "negated": false,
  34. "key": {"type": "keySimple", "value": "timestamp", "quoted": false},
  35. "operator": ">",
  36. "value": {
  37. "type": "valueIso8601Date",
  38. "value": "2015-05-18T10:15:01",
  39. "parsed": {"value": "2015-05-18T10:15:01.000Z"},
  40. "date": "2015-05-18",
  41. "time": "10:15:01",
  42. "tz": null
  43. }
  44. },
  45. {"type": "spaces", "value": ""}
  46. ]
  47. },
  48. {
  49. "desc": "test date time format w microseconds",
  50. "query": "timestamp:>2015-05-18T10:15:01.103",
  51. "result": [
  52. {"type": "spaces", "value": ""},
  53. {
  54. "type": "filter",
  55. "filter": "date",
  56. "negated": false,
  57. "key": {"type": "keySimple", "value": "timestamp", "quoted": false},
  58. "operator": ">",
  59. "value": {
  60. "type": "valueIso8601Date",
  61. "value": "2015-05-18T10:15:01.103",
  62. "parsed": {"value": "2015-05-18T10:15:01.103Z"},
  63. "date": "2015-05-18",
  64. "time": "10:15:01.103",
  65. "tz": null
  66. }
  67. },
  68. {"type": "spaces", "value": ""}
  69. ]
  70. },
  71. {
  72. "desc": "test date time format w microseconds and utc marker",
  73. "query": "timestamp:>2015-05-18T10:15:01.103Z",
  74. "result": [
  75. {"type": "spaces", "value": ""},
  76. {
  77. "type": "filter",
  78. "filter": "date",
  79. "negated": false,
  80. "key": {"type": "keySimple", "value": "timestamp", "quoted": false},
  81. "operator": ">",
  82. "value": {
  83. "type": "valueIso8601Date",
  84. "value": "2015-05-18T10:15:01.103Z",
  85. "parsed": {"value": "2015-05-18T10:15:01.103Z"},
  86. "date": "2015-05-18",
  87. "time": "10:15:01.103",
  88. "tz": "Z"
  89. }
  90. },
  91. {"type": "spaces", "value": ""}
  92. ]
  93. }
  94. ]