in reply to How to convert time in perl?

I would look at the strftime() method in the POSIX module.