Darren Duncan wrote:
Dave Rolsky wrote:
It's not necessary to store each unit internally in order to get
everything right, and not doing so makes some things a lot easier
(though it makes other things harder ;)
I prefer to make value representation simpler at the possible cost of
calculation
Dave Rolsky wrote:
On Thu, 19 Feb 2009, Darren Duncan wrote:
And which is why subsecond and whole-second *can* be combined.
Appropriate separation allows better accuracy in letting people
express what they mean rather than shoehorning it into a less accurate
space, like DateTime.pm shoehorns
On Thu, 19 Feb 2009, Darren Duncan wrote:
And which is why subsecond and whole-second *can* be combined. Appropriate
separation allows better accuracy in letting people express what they mean
rather than shoehorning it into a less accurate space, like DateTime.pm
shoehorns into Days+Seconds+N
Timothy S. Nelson wrote:
On Thu, 19 Feb 2009, Darren Duncan wrote:
You could make month/day into positive integers or "subtype of Int
where 1..12" etc, though it isn't strictly necessary. Leave year as
Int of course, since at least in the proleptic Gregorian etc you can
have negatives or zero
On Thu, 19 Feb 2009, Darren Duncan wrote:
+role Temporal::Date {
+ has Int $.year;
+ has Int $.month;
+ has Int $.day; # Day of month
+ has Int $.dayofweek;
You could make month/day into positive integers or "subtype of Int where
1..12" etc, though it isn't strictly
pugs-comm...@feather.perl6.nl wrote:
Author: wayland
Date: 2009-02-19 08:47:26 +0100 (Thu, 19 Feb 2009)
New Revision: 25405
Modified:
docs/Perl6/Spec/S32-setting-library/Temporal.pod
Log:
Improved Temporal (previously DateTime) stuff a bit
Okay, so I have a few specific suggestions ...
And
Author: wayland
Date: 2009-02-19 08:47:26 +0100 (Thu, 19 Feb 2009)
New Revision: 25405
Modified:
docs/Perl6/Spec/S32-setting-library/Temporal.pod
Log:
Improved Temporal (previously DateTime) stuff a bit
Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod
===