Store more than 24 hours in a DateTime

Posted by Rob on Stack Overflow See other posts from Stack Overflow or by Rob
Published on 2010-04-01T20:53:28Z Indexed on 2010/04/01 21:03 UTC
Read the original article Hit count: 237

Filed under:
|

I work in a bizarre and irrational industry where we need to be able to represent the time of day as 06:00:00 to 30:00:00 instead of 0:00:00 to 24:00:00. Is there any way to do this using the DateTime type? If I try to construct a date time with an hour value greater than 24 it throws an exception.

© Stack Overflow or respective owner

Related posts about c#

Related posts about datetime