http://www.perlmonks.org?node_id=1069016


in reply to Epoch to specific output

Using bash you say? If gnu tools are available, the gnu date utility can perform said task:
$ date +%Y%m%d%H%M -u -d @1388679108
(Prints the UTC stamp for given epoch time.)