develooper Front page | perl.perl6.language | Postings from November 2010

Re: exponentiation of Duration's

Thread Previous | Thread Next
From:
Oha
Date:
November 17, 2010 06:20
Subject:
Re: exponentiation of Duration's
Message ID:
4CE3E496.3050607@oha.it
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

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About