in reply to time in seconds

While Hofmator is right, you may want to look at Date::Calc which allows many time and date transformations done easily.

Scott