timestamp.json 2.2 KB

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