| 904 | } |
| 905 | |
| 906 | static |
| 907 | std::chrono::seconds |
| 908 | parse_unsigned_time(std::istream& in) |
| 909 | { |
| 910 | using namespace std::chrono; |
| 911 | int x; |
| 912 | in >> x; |
| 913 | auto r = seconds{hours{x}}; |
| 914 | if (!in.eof() && in.peek() == ':') |
| 915 | { |
| 916 | in.get(); |
| 917 | in >> x; |
| 918 | r += minutes{x}; |
| 919 | if (!in.eof() && in.peek() == ':') |
| 920 | { |
| 921 | in.get(); |
| 922 | in >> x; |
| 923 | r += seconds{x}; |
| 924 | } |
| 925 | } |
| 926 | return r; |
| 927 | } |
| 928 | |
| 929 | static |
| 930 | std::chrono::seconds |