This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef07e81
)
Fix pod warnings in perlfaq4.pod
author
Michael Stevens
<mstevens@etla.org>
Wed, 16 Feb 2011 17:41:44 +0000
(17:41 +0000)
committer
Father Chrysostomos
<sprout@cpan.org>
Wed, 16 Feb 2011 17:51:00 +0000
(09:51 -0800)
pod/perlfaq4.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perlfaq4.pod
b/pod/perlfaq4.pod
index
e33c2d3
..
1cbea50
100644
(file)
--- a/
pod/perlfaq4.pod
+++ b/
pod/perlfaq4.pod
@@
-430,7
+430,7
@@
C<localtime> that returns an object:
use Time::Piece;
my $day_of_year = localtime->yday;
my $week_of_year = localtime->week;
-
+
The C<Date::Calc> module provides two functions to calculate these too:.
use Date::Calc;
@@
-480,7
+480,7
@@
C<Time::Seconds> object:
my $diff = $date1 - $date2;
print "The difference is ", $date_diff->days, " days\n";
-
+
If you want to work with formatted dates, the C<Date::Manip>,
C<Date::Calc>, or C<DateTime> modules can help you.