in reply to epoch time conversion

Look at localtime function. There you will find good explanation how to get values from UNIX-time, and how to use it with strftime function.

-- Yuriy Syrota