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/032107.html below:

[Python-Dev] Interop between datetime and mxDateTime

[Python-Dev] Interop between datetime and mxDateTime [Python-Dev] Interop between datetime and mxDateTimeFredrik Lundh fredrik@pythonware.com
Mon, 13 Jan 2003 18:41:39 +0100
guido wrote:

> There was a proposal long ago that all datetime-like objects should
> implement a timetuple() method.  Perhaps we should revive that?
> datetime does implement this.

the last revision of the "time type" proposal seems to suggest that all
time types should implement the following interface:

    tm = timeobject.timetuple()
    cmp(timeobject, timeobject)
    hash(timeobject)

and optionally

    deltaobject = timeobject - timeobject
    floatobject = float(deltaobject) # fractional seconds
    timeobject = timeobject + integerobject
    timeobject = timeobject + floatobject
    timeobject = timeobject + deltaobject

more here:

    http://effbot.org/zone/idea-time-type.htm

</F>




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