A better DateTime.rfc822() (Was: [Zope-Coders] Linux Test Results - Zope 2.6 branch - failures:1)

Lennart Regebro lennart@regebro.nu
Tue, 29 Oct 2002 16:56:42 +0100


From: "Shane Hathaway" <shane@zope.com>
> You'll want to use _tzoffset like this:
>
> _tzoffset(self._tz, self._t)

Aha. Thanks. I must agree that a gazed at the code for _tzoffset for a
minute, understood exactly nothing and then just decided to use it like
everybody else uses it. The documentation is a bit sparse... :-)

> That way, the actual zone offset can change over time, which follows the
> complicated time zone conventions.  If you have a moment, you could add
> a docstring to the _tzoffset function, too.

I'll do that.