summaryrefslogtreecommitdiff
path: root/pod/perlfaq4.pod
diff options
context:
space:
mode:
authorRonald J. Kimball <rjk@linguist.dartmouth.edu>2003-08-21 13:09:17 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2003-08-22 04:57:12 +0000
commitffc145e8a18a4c952027b6b4c853bd908c48f521 (patch)
tree8c3ee07d2e6cff4c4c836359d3e1779b594b3ab3 /pod/perlfaq4.pod
parentda76a1f46b22411dc37cbf73d79e809bb51a9b8d (diff)
downloadperl-ffc145e8a18a4c952027b6b4c853bd908c48f521.tar.gz
Re: pod cleanup
Message-ID: <20030821210917.GB164965@linguist.thayer.dartmouth.edu> (the pod part) p4raw-id: //depot/perl@20813
Diffstat (limited to 'pod/perlfaq4.pod')
-rw-r--r--pod/perlfaq4.pod6
1 files changed, 3 insertions, 3 deletions
diff --git a/pod/perlfaq4.pod b/pod/perlfaq4.pod
index 5e10a11ad5..1be7333b5b 100644
--- a/pod/perlfaq4.pod
+++ b/pod/perlfaq4.pod
@@ -359,7 +359,7 @@ The localtime function returns the day of the week. Without an
argument localtime uses the current time.
$day_of_year = (localtime)[7];
-
+
The POSIX module can also format a date as the day of the year or
week of the year.
@@ -369,7 +369,7 @@ week of the year.
To get the day of year for any date, use the Time::Local module to get
a time in epoch seconds for the argument to localtime.
-
+
use POSIX qw/strftime/;
use Time::Local;
my $week_of_year = strftime "%W",
@@ -380,7 +380,7 @@ The Date::Calc module provides two functions for to calculate these.
use Date::Calc;
my $day_of_year = Day_of_Year( 1987, 12, 18 );
my $week_of_year = Week_of_Year( 1987, 12, 18 );
-
+
=head2 How do I find the current century or millennium?
Use the following simple functions: