Good catch.
I've removed the section from the CVS copy.
Thanks!
-R
--- perlfaq4.pod 2 Oct 2003 04:44:33 -0000 1.52
+++ perlfaq4.pod 11 Nov 2003 02:21:34 -0000
@@ -415,14 +415,6 @@
return 1+int((((localtime(shift || time))[5] + 1899))/1000);
}
-You can also use the POSIX strftime() function which may be a bit
-slower but is easier to read and maintain.
-
- use POSIX qw/strftime/;
-
- my $week_of_the_year = strftime "%W", localtime;
- my $day_of_the_year = strftime "%j", localtime;
-
On some systems, the POSIX module's strftime() function has
been extended in a non-standard way to use a C<%C> format,
which they sometimes claim is the "century". It isn't,
At Thu, 6 Nov 2003 15:53:53 +0100,
Stefano Rodighiero wrote:
>
> Hello.
>
> I think there's an error in perlfaq4.pod.
> In
>
> =head2 How do I find the current century or millennium?
>
> the part after
>
> " You can also use the POSIX strftime() function which may be a bit
> slower but is easier to read and maintain.
>
> use POSIX qw/strftime/;
> [...] "
>
> seems to refer to the previous question.
>
> cheers,
> Stefano Rodighiero
>
> --
> Stefano Rodighiero | http://larsen.perlmonk.org
> mailto:[EMAIL PROTECTED] | http://www.perl.it