Author: Kodi Date: 2010-07-26 15:57:17 +0200 (Mon, 26 Jul 2010) New Revision: 31835
Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod Log: [S32/Temporal] Specified how DateTime.new(Int) should interpret ambiguous input. Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod =================================================================== --- docs/Perl6/Spec/S32-setting-library/Temporal.pod 2010-07-26 12:05:05 UTC (rev 31834) +++ docs/Perl6/Spec/S32-setting-library/Temporal.pod 2010-07-26 13:57:17 UTC (rev 31835) @@ -15,8 +15,8 @@ Created: 19 Mar 2009 - Last Modified: 24 Jul 2010 - Version: 18 + Last Modified: 26 Jul 2010 + Version: 19 The document is a draft. @@ -75,7 +75,10 @@ my $now = DateTime.new(time); These two statements are equivalent except that C<time> doesn't know about -leap seconds or fractions of seconds. +leap seconds or fractions of seconds. Ambiguous POSIX times (such as +915148800, which could refer to 1998-12-31T23:59:60Z or +1999-01-01T00:00:00Z) are interpreted as non-leap seconds (so in this case, +the result would be 1999-01-01T00:00:00Z). Or you can use named arguments: