[Zope3-dev] timetuple and utctimetuple
Marius Gedminas
mgedmin@codeworks.lt
Tue, 19 Nov 2002 19:10:54 +0200
On Tue, Nov 19, 2002 at 11:41:49AM -0500, Guido van Rossum wrote:
> > I've just commited this fix to datetime in Zope3 CVS.
>
> Please don't just change the datetime.py that's in Zope3. It's a copy
> of the datetime.py in the "nondist" part of the Python CVS tree, and
> the latter is the master copy:
>
> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/python/python/nondist/sandbox/datetime/
>
> If you have a bug or patch to report, please submit a SourceForge bug
> report for the latter and assign it to me, Fred Drake or Tim Peters.
Ouch, SourceForge web interface hurts. ;)
Ok, I'll do it.
> > Personally, I find it a bit confusing. I think that dt.timetuple()
> > should return a broken-down time representation in the same timezone dt
> > was defined in.
>
> Yes.
Great.
> I think that only datetimetz should have an utctimetuple() method.
Even greater.
> > P.S. Would you like me to commit my prototype datetime.time
> > implementation to Zope3 CVS after we finish it?
>
> I'd rather that you submitted a context diff for Python's datetime.py
> to the SF patch tracker.
Ok.
Marius Gedminas
--
The reason computer chips are so small is that computers don't eat much.