On 11/17/2010 02:56 PM, Carl Mäsak wrote:
Or, by Ockham, since Duration is now deprived of its only task --
making life harder for the programmer -- remove it altogether from the
language and just put a number type in its place, representing number
of seconds.
I could be wrong but this reminds me that a Duration could not be only
based in seconds, but also in other units (which may automagically be
converted to seconds) and also those seconds may be leap or not.
Maybe the point is that really the power of a Duration should not be
performed, unless you coerce the Duration in a specific unit value?
Extending a bit more, does an Instant be specified in a TimeZone? Could
an Instant be incremented by Day units? What happen if this increment
change from daylight saving to normal time?
HTH
Oha