En Tue, 17 May 2011 07:44:08 -0300, Tsolmon Narantsogt
escribió:
I'm using datetime.timedelta and i have a problem
delta = 1 day, 2:30:00
hours = delta.days * 8
how to add 8 + 2:30:00
Just operate with it as it were a number. The timedelta class implements
all "sane" mathematical operat
> Try d // 2 ?
> It may be that v2.6 considers / as __truediv__ and not __div__.
Ah, right you are. Thanks...
Skip
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 1, 7:28 pm, [EMAIL PROTECTED] wrote:
> Running from Subversion, I see confusing (to me) behavior related to
> division of datetime.timedelta objects by integers:
>
> % python
> Python 2.6a0 (trunk:57277:57280M, Aug 28 2007, 17:44:49)
> [GCC 4.0.1 (Apple Computer, Inc. build 5367)