I am new to Perl and would like to perform a quick conversion using a one liner Perl execution in bash shell.
x=1388679108 perl -e 'print strftime("%m%d%H%M", $x)' 01021611
I am looking for a way to change any given epoch time to a date format of month/day/hour/minute that will be used for a time stamp. I am aware that perl -e "print scalar localtime $x" will provide me with "Thu Jan 2 16:11:48 2014". But, I am looking for a different type of output format.
In reply to Epoch to specific output by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |