[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Duration: Does 1 day == 24 hours?



At 16.26 -0500 01-03-28, John Stracke wrote:
That is one possible approach, but it's one that makes duration
calculations much more complex.  In this approach the duration data type
becomes polymorphic; it can be *either* days *or* seconds, and you need
drastically different code to deal with the two cases.  Add in durations
that are *both* (e.g., P1DT5H), and you're in deep pain.

Calendar calculations are hard, and you can not ignore real life.


paf