in reply to Year shows as 20102 in date
#!/usr/bin/perl ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time +); $year+=1900; $date = "$month/$mday/$year";
Add the $year+=1900; line, the year is number of years since 1900.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re:x2 date (use ISO date formats)
by grinder (Bishop) on Feb 14, 2002 at 16:23 UTC |
In Section
Seekers of Perl Wisdom