See POSIX::strftime:
print strftime '%Y-%m-%d %H:%M:%S', gmtime($timestamp); [download]
In reply to Re: Converting dates by Corion in thread Converting dates by denzil_cactus