The Wisdom of Time
Ketil Z Malde
ketil@ii.uib.no
07 Jan 2002 13:33:38 +0100
The following message is a courtesy copy of an article
that has been posted to comp.lang.functional as well.
Hi,
what is the wisdom behind representing a TimeDiff as a struct of year,
month, week and so on, instead of simply the (fractional) number of
seconds, or similar?
In particular, the derivation of Eq seems to me to imply that sixty minutes
is not the same as one hour.
I haven't gotten around to play much with the module yet, but at least
Prelude> (Time.TimeDiff 0 0 0 1 0 0 0) == (Time.TimeDiff 0 0 0 0 60 0 0)
False
Could somebody please enlighten me on this issue?
-kzm
--
If I haven't seen further, it is by standing in the footprints of giants