The time2str function is taken from HTTP::Date,
in the event HTTP::Date isn't available.

Copyright 1995-1999, Gisle Aas

This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.