Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
    ...
    
    print UnixDate("12/31/2007", "%L-W%W"), "\n";            # prints "200
    +8-W01"
    print time2str("%Y-W%W", str2time("12/31/2007")), "\n";  # prints "200
    +7-W52" (!!)