Am 20.04.2010 16:59, schrieb Dave Rolsky:
On Fri, 16 Apr 2010, pugs-comm...@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