A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2003-January/032151.html below:

[Python-Dev] Interop between datetime and mxDateTime

[Python-Dev] Interop between datetime and mxDateTime [Python-Dev] Interop between datetime and mxDateTimeTim Peters tim.one@comcast.net
Mon, 13 Jan 2003 21:31:28 -0500
[Guido]
> (Hm, I just found that utctimetuple() returns the same as timetuple()
> when the tzinfo is None

Yes.  Also if d.tzinfo is not None but d.tzinfo.utcoffset(d) returns 0 or
None.

> -- that doesn't seem right.)

Because ...?  I'd rather get rid of utctimetuple(), supply a datetime.utc
tzinfo subclass out of the box, and change the spelling of

    d.utctimetuple()

to

    d.timetuple(tzinfo=utc)

Similarly for datetime.now() vs datetime.utcnow().  The proliferation of
ABCutcXYZ methods is confusing, especially since they return naive objects.

None of that helps make for a lowest common denonminator, though.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4