Used to test custom date/time output test cases i.e. timestamp value -> string.
| 108 | |
| 109 | // Used to test custom date/time output test cases i.e. timestamp value -> string. |
| 110 | struct TimestampFormatTC { |
| 111 | const long ts; |
| 112 | const char* fmt; |
| 113 | const char* str; |
| 114 | bool should_fail; |
| 115 | |
| 116 | TimestampFormatTC(long ts, const char* fmt, const char* str, bool should_fail = false) |
| 117 | : ts(ts), |
| 118 | fmt(fmt), |
| 119 | str(str), |
| 120 | should_fail(should_fail) { |
| 121 | } |
| 122 | }; |
| 123 | |
| 124 | // Used to represent a parsed timestamp token. For example, it may represent a year. |
| 125 | struct TimestampToken { |