parseClockOrNull

Parses a clock string produced by formatClock, or returns null when text is not valid.

Two colon-separated fields are read as minutes and seconds, three as hours, minutes, and seconds. The leading field may have any number of digits, every following field must have exactly two digits and be at most 59, and a single leading minus sign negates the result.