I know there are a lot of questions like this, but I can't seem to find an answer for mine.
I have this line of C# code:
var x = TimeSpan.ParseExact("800", "hmm", CultureInfo.InvariantCulture);
And it throws an exception saying that the input format was invalid. If I put "0800" and "hhmm", it works. I've seen people use the single "h" in TimeSpan-Conversions, so it has to be possible to do so. There are also no special letters that would need to be escaped.
I tried using CurrentCulture instead of InvariantCulture, but that didn't change anything. Right now, I'm padding my strings to have 0s on the left side, but I would like to know, why the TimeSpan-Parsing failed.