MCPcopy Create free account
hub / github.com/GothenburgBitFactory/timewarrior / parse_second

Method parse_second

src/DatetimeParser.cpp:982–997  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

980
981////////////////////////////////////////////////////////////////////////////////
982bool 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////////////////////////////////////////////////////////////////////////////////
1000bool DatetimeParser::parse_off_hour (Pig& pig, int& value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected