I perfectly understand, but this website is about Perl and not about Unix commands. You can take my solution and put it into a Perl oneliner as follows:
perl -MPOSIX=strftime -le 'print strftime "%Y%m%d %H%M%S", localtime'
In reply to Re^3: Date format in *nix box
by Corion
in thread [OT] Date format in *nix box
by qsl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |