I've used the following two perl command lines successfully:
perl -e 'use Time::Local; print timelocal(7,51,10,22,3,2014), "\n";'
perl -e 'print scalar(localtime(1398163867)), "\n"'
Tue Apr 22 10:51:07 2014
What I would like to do is replace
1398163867 with a variable containing those values. How can I do this?