Improving datetime
castironpi at gmail.com
castironpi at gmail.com
Fri Mar 21 02:34:41 EDT 2008
On Mar 19, 5:32 pm, Steven D'Aprano <st... at REMOVE-THIS-
cybersource.com.au> wrote:
> On Wed, 19 Mar 2008 17:40:39 -0400, Nicholas F. Fabry wrote:
> > To summarize my proposal VERY briefly:
>
> > - Make aware datetime objects display in local time, but calculate/
> > compare in UTC.
>
> What possible ambiguity is there?
I agree.
>>> D.datetime( 2008, 3, 23 )
datetime.datetime(2008, 3, 23, 0, 0)
>>> a=_
>>> D.timedelta( minutes= 30, seconds= 80 )
datetime.timedelta(0, 1880)
>>> b= _
>>> a+b
datetime.datetime(2008, 3, 23, 0, 31, 20)
>>> a+b-a
datetime.timedelta(0, 1880)
More information about the Python-list
mailing list