Help for this page

Select Code to Download


  1. or download this
                                                                          
    +          
    # Golfed generation of current date/time
    @t=map{$_+{4,1,5,1900}->{5-$i++}}(reverse localtime)[3..8];
                                                                          
    +          
    # Print the date/time
    printf "%d-%d-%d %02d:%02d:%02d\n", @t;
    
  2. or download this
    @t=map$_+{1,1,0,1900}->{$i++},(localtime)[5,4,3,2,1,0];