in reply to [OT] Date format in *nix box

The POSIX module contains the strftime() function, which is incredibly convenient for formatting dates and times:

use strict; use POSIX qw(strftime); print strftime '%Y%%m%d %H%M%S', localtime();

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.