| 691 | } |
| 692 | |
| 693 | void |
| 694 | test_r() |
| 695 | { |
| 696 | using namespace date; |
| 697 | using namespace std::chrono; |
| 698 | { |
| 699 | std::istringstream in{"2016-12-26 1:36:57 pm"}; |
| 700 | sys_seconds tp; |
| 701 | in >> parse("%F %r", tp); |
| 702 | assert(!in.fail()); |
| 703 | assert(!in.bad()); |
| 704 | assert(tp == sys_days{2016_y/12/26} + hours{13} + minutes{36} + seconds{57}); |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | void |
| 709 | test_R() |