# 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; #### @t=map$_+{1,1,0,1900}->{$i++},(localtime)[5,4,3,2,1,0];