in reply to ISO Date Week Number
This is assuming your install of v5.0 has a working POSIX.pm:
use POSIX 'strftime'; # replace with actual date my @localtime = qw/YYYY MM DD 00 00 00/; # see perldoc -f localtime $localtime[0] -= 1900; $localtime[1] -= 1; print strftime('%V', reverse @localtime);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: ISO Date Week Number
by halley (Prior) on Sep 06, 2005 at 15:39 UTC | |
by mattk (Pilgrim) on Sep 06, 2005 at 23:12 UTC |
In Section
Seekers of Perl Wisdom