in reply to Re: ISO Date Week Number
in thread ISO Date Week Number

From my copy of (perldoc POSIX):
If you want your code to be portable, your format ("fmt") argument should use only the conversion specifiers defined by the ANSI C standard. These are "aAbBcdHIjmMpSUwWxXyYZ%".
I'm not familiar with the apparently non-standard %V code. Does that offer the "week number" as requested by the original poster? On what platform(s)?

--
[ e d @ h a l l e y . c c ]

Replies are listed 'Best First'.
Re^3: ISO Date Week Number
by mattk (Pilgrim) on Sep 06, 2005 at 23:12 UTC
    Yes, it corresponds to ISO's standard definition of a week number.

    Tested on:
    Linux 2.4.21, Perl v5.6.1
    Linux 2.6.10, Perl v5.8.3
    Mac OS X Tiger 10.4.2, Perl v5.8.6

    Of course, if the OP is still using v5.0 I've got no idea what kind of old OS they're using, so YMMV.