Introduction and caveat

Timespan is a .NET object that can be used to represent a time interval. For example, a 15:00:00 is a timespan that represents 15 hours. However, I feel that the way timespan works when trying to create a time interval of 24 hours or more is a bit weird. Instead of 24:00:00 representing 24 hours, .NET instead assumes this is 24 days. This can be quite confusing when someone tries to create a Timespan to represent 24 hours and uses 24:00:00 it’ll turn out to be 24 days.

The correct way to represent any time after 23:59:59 is to use 1.00:00:00 which would represent 1 day.

QSBDR (Quite short but didn’t read)

Use 1.00:00:00 to represent one day and be careful when trying to represent a time interval that’s 24 or more hours.