time
Gerrit
gerrit at nl.linux.org
Tue Sep 28 03:18:46 EDT 2004
Steve Holden wrote:
> Bryan wrote:
>
> >can someone explain to me why i get different values for the tm_yday and
> >tm_isdst values?
> >
> > >>> import rfc822
> > >>> rfc822.parsedate('Mar 1 01:03:59 2004')
> >(2004, 3, 1, 1, 3, 59, 0, 0, 0)
> >
> > >>> import time
> > >>> time.strptime('Mar 1 01:03:59 2004', '%b %d %H:%M:%S %Y')
> >(2004, 3, 1, 1, 3, 59, 0, 61, -1)
> >
> The trivial answer is "because of differences in the modules". Your
> question is a bit like asking "Why is the sky today not the same color
> as it was yesterday?"
See also:
http://www.python.org/sf/748843
Gerrit.
--
Weather in Twenthe, Netherlands 28/09 08:55:
15.0°C mist overcast wind 4.0 m/s SW (57 m above NAP)
--
In the councils of government, we must guard against the acquisition of
unwarranted influence, whether sought or unsought, by the
military-industrial complex. The potential for the disastrous rise of
misplaced power exists and will persist.
-Dwight David Eisenhower, January 17, 1961
More information about the Python-list
mailing list