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

2010-04-21 Thread Moritz Lenz
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 objects, two more +methods are exposed: + + $d.daycount + Date.new-from

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

2010-04-20 Thread Mark J. Reed
On Tue, Apr 20, 2010 at 10:59 AM, Dave Rolsky wrote: > 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 > To be clear, that's specifically January 1, 1 CE in the retrojected Gregorian calendar, which is the same day as Janu

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

2010-04-20 Thread 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 objects, two more +methods are exposed: + +$d.daycount +Date.new-from-daycount(Int $daycount) I'd _reall

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

2010-04-16 Thread Mark J. Reed
" On Friday, April 16, 2010, Mark J. Reed wrote: > or at least, Date should have a method that returns it's value as > pairs suitable for passing to DateTime.new. Obviously that should be "its value". Thank you, iPhone, for thinking you know better than I how to punctuate. :) -- Mark J. Reed

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

2010-04-16 Thread Mark J. Reed
I would only add that I think the DateTime constructor should accept a Date object: my $bday = new Date.new(1968, 5, 5); my $specifically = DateTime.new(:date($bday), :hour(20), :minute(47)); or at least, Date should have a method that returns it's value as pairs suitable for passing to DateTime.

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

2010-04-16 Thread pugs-commits
Author: moritz Date: 2010-04-16 22:40:37 +0200 (Fri, 16 Apr 2010) New Revision: 30398 Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod Log: [S32/Temporal] spec Date type This is heavily inspired by Date::Simple on CPAN, and mostly implemented at http://github.com/moritz/Date/ as an e