
On Wed, 6 Jul 2005, Simon Marlow wrote:
On 06 July 2005 12:01, Tony Finch wrote:
On Wed, 6 Jul 2005, Simon Marlow wrote:
"this time tomorrow" is not well-defined. What happens then the clocks change?
It's well-defined unless the current time doesn't exist tomorrow, which can happen if a DST switch or leap second happens. In these cases I'd expect either (a) a sensible rollover, or (b) an error, or possibly both behaviours to be available.
There can also be multiple possible answers when the clocks go back.
Perhaps the result type should be a list.
It's probably useful to decouple normalization of a possibly-invalid
date/time specification, from converstion to a linear time scale.
Tony.
--
f.a.n.finch