cvs commit: perlfaq perlfaq4.pod
[email protected] (Robert Spier) 11 Nov 2003 02:23:32 -0000
| Newsgroups | perl.cvs.perlfaq |
|---|---|
| Message-ID | <[email protected]> |
cvsuser 03/11/10 18:23:32 Modified: . perlfaq4.pod Log: From: Stefano Rodighiero <[email protected]> To: [email protected] Subject: Possible bug in perlfaq4.pod Date: Thu, 6 Nov 2003 15:53:53 +0100 Redundant section Revision Changes Path 1.53 +1 -9 perlfaq/perlfaq4.pod Index: perlfaq4.pod =================================================================== RCS file: /cvs/public/perlfaq/perlfaq4.pod,v retrieving revision 1.52 retrieving revision 1.53 diff -u -w -r1.52 -r1.53 --- perlfaq4.pod 2 Oct 2003 04:44:33 -0000 1.52 +++ perlfaq4.pod 11 Nov 2003 02:23:32 -0000 1.53 @@ -1,6 +1,6 @@ =head1 NAME -perlfaq4 - Data Manipulation ($Revision: 1.52 $, $Date: 2003/10/02 04:44:33 $) +perlfaq4 - Data Manipulation ($Revision: 1.53 $, $Date: 2003/11/11 02:23:32 $) =head1 DESCRIPTION @@ -414,14 +414,6 @@ sub get_millennium { 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,