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
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
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
"
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
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.
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