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

Re: r30398 - docs/Perl6/Spec/S32-setting-library

Thread Previous | Thread Next
From:
Moritz Lenz
Date:
April 21, 2010 02:03
Subject:
Re: r30398 - docs/Perl6/Spec/S32-setting-library
Message ID:
4BCEBF3F.6060302@faui2k3.org
Am 20.04.2010 16:59, schrieb Dave Rolsky:
> On Fri, 16 Apr 2010, pugs-commits@feather.perl6.nl wrote:
>
>> +=head2 Semi-internal methods
>> +
>> +[This section is severely conjectural]
>> +
>> +For efficient implementation of arithmetics on C<Date> objects, two more
>> +methods are exposed:
>> +
>> + $d.daycount
>> + Date.new-from-daycount(Int $daycount)
>
> I'd _really_ like to see this be based on Rata Die, which is January 1,
> 0001. See http://en.wikipedia.org/wiki/Rata_Die

Your answer made it clear to me that people are not going to like the 
daycount (or day-count) accessor. I consciously did not specify an epoch 
on which daycount was based because I didn't want to force the 
implemntor's hand more than absolutely necessary.

Since number-of-days-relative-to-a-fixed-epoch is still available 
trivially as $date - $start-of-epoch I've now removed the daycount 
related methods.

Cheers,
Moritz

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