Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Date::Format 'time2str';
    
    print time2str("%Y-W%W", time);
    
  2. or download this
    my $t = time;
    print time2str("%Y-W", $t) . sprintf("%02d",time2str("%W", $t));