///////////////////////////////////////////////////////////////////////////
| 980 | |
| 981 | //////////////////////////////////////////////////////////////////////////////// |
| 982 | bool DatetimeParser::parse_second (Pig& pig, int& value) |
| 983 | { |
| 984 | auto checkpoint = pig.cursor (); |
| 985 | |
| 986 | int second; |
| 987 | if (pig.getDigit2 (second) && |
| 988 | second >= 0 && |
| 989 | second < 60) |
| 990 | { |
| 991 | value = second; |
| 992 | return true; |
| 993 | } |
| 994 | |
| 995 | pig.restoreTo (checkpoint); |
| 996 | return false; |
| 997 | } |
| 998 | |
| 999 | //////////////////////////////////////////////////////////////////////////////// |
| 1000 | bool DatetimeParser::parse_off_hour (Pig& pig, int& value) |
nothing calls this directly
no outgoing calls
no test coverage detected