in reply to WWW::Mechanize wrong month
Perl Month numbers from 'localtime' etc are ZERO based.
This syntax:
returns values similar to localtime(), which uses zero-based months.($sec, $min, $hour, $mday, $mon, $year, $wday, $yday) = POSIX::strpti +me(string, format);
$mday is the day of the month and $mon the month in the range 0..11, with 0 indicating January and 11 indicating December. This makes it easy to get a month name from a list:
"By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest." -Confucius
|
---|
In Section
Seekers of Perl Wisdom