develooper Front page | perl.perl6.language | Postings from July 2010

r31652 -[Temporal] time is now a pseudo-constant like now, rand, etc

From:
pugs-commits
Date:
July 12, 2010 17:06
Subject:
r31652 -[Temporal] time is now a pseudo-constant like now, rand, etc
Message ID:
20100713000601.1126.qmail@feather.perl6.nl
Author: lwall
Date: 2010-07-13 02:06:01 +0200 (Tue, 13 Jul 2010)
New Revision: 31652

Modified:
   docs/Perl6/Spec/S32-setting-library/Temporal.pod
Log:
[Temporal] time is now a pseudo-constant like now, rand, etc


Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/Temporal.pod	2010-07-12 23:59:37 UTC (rev 31651)
+++ docs/Perl6/Spec/S32-setting-library/Temporal.pod	2010-07-13 00:06:01 UTC (rev 31652)
@@ -15,8 +15,8 @@
 
     Created: 19 Mar 2009
 
-    Last Modified: 11 July 2010
-    Version: 8
+    Last Modified: 12 Jul 2010
+    Version: 9
 
 The document is a draft.
 
@@ -57,6 +57,10 @@
 
 Returns the current POSIX time. Use the C<now> function for an
 epoch-agnostic measure of atomic seconds (i.e., an C<Instant>).
+Note that both C<time> and C<now> are not functions, but terms
+of the pseudo-constant variety; as such they never take an argument.
+Saying C<time()> doesn't work unless you happen to have a function
+of that name defined.
 
 =head1 C<DateTime>
 




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About