Author: Kodi Date: 2010-07-25 01:41:01 +0200 (Sun, 25 Jul 2010) New Revision: 31820
Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod Log: [S32/Temporal] Fixed an inconsistency and uniquified a section title to avoid confusing smartlinks.pl. Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod =================================================================== --- docs/Perl6/Spec/S32-setting-library/Temporal.pod 2010-07-24 23:21:46 UTC (rev 31819) +++ docs/Perl6/Spec/S32-setting-library/Temporal.pod 2010-07-24 23:41:01 UTC (rev 31820) @@ -15,8 +15,8 @@ Created: 19 Mar 2009 - Last Modified: 21 Jul 2010 - Version: 17 + Last Modified: 24 Jul 2010 + Version: 18 The document is a draft. @@ -199,14 +199,14 @@ The method C<whole-second> returns the second truncated to an integer. The C<Date> method returns a C<Date> object, and is the same as -C<Date.new(|$dt.ymd)>. +C<Date.new($dt.year, $dt.month, $dt.day)>. The method C<offset> returns the object's current offset from UTC: if C<$dt.timezone> does C<Callable>, C<$dt.offset> is equivalent to C<$dt.timezone($dt, True)>; otherwise, C<$dt.offset> returns C<$dt.timezone> as is. -=head1 Date +=head1 C<Date> C<Date> objects represent a day without a time component. Like C<DateTime> objects, they are immutable. They allow easier manipulation by assuming @@ -227,7 +227,7 @@ The constructors die with a helpful error message if month or day are out of range. -=head2 Accessors +=head2 Instance methods C<Date> objects support all of the following accessors, which work just like their C<DateTime> equivalents: