Install the module, add a call to it into your code and you're done. Modules like this don't get much attention but they make your life with Perl a lot easier. HTTP::Date does its task and does it well while staying out of your way.
Effectively & correctly converts Unix epoch times to and from HTTP server style dates.