public static int ParseTime(string s) { int result; if (!TryParseTime(s, out result)) { throw new FormatException(); } return result; }