• Max Kellermann's avatar
    time/ISO8601: refactor ParseTimeOfDay() to parse one by one · 744bd1ea
    Max Kellermann authored
    This prepares the migration away from strptime() for Windows
    portability.
    
    But the real reason I'm doing this is that strptime() on Apple is
    buggy: strptime("14", "%H%M%S") (without separating colons) succeeds
    even though only the hour has been parsed.  This fixes recent Travis
    failures in the ParseISO8601() unit test.
    744bd1ea
ISO8601.cxx 5.17 KB