| 230 | } |
| 231 | |
| 232 | void |
| 233 | test_X() |
| 234 | { |
| 235 | using namespace date; |
| 236 | using namespace std::chrono; |
| 237 | { |
| 238 | // correct abbreviation |
| 239 | std::istringstream in{"2016-12-11 14:02:43"}; |
| 240 | sys_seconds tp; |
| 241 | in >> parse("%F %X", tp); |
| 242 | assert(!in.fail()); |
| 243 | assert(!in.bad()); |
| 244 | assert(tp == sys_days{2016_y/12/11} + hours{14} + minutes{2} + seconds{43}); |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | void |
| 249 | test_C() |