[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-dev
Subject:    Re: [Zope-dev] DateTime issues with negative offsets
From:       Leonardo Rochael Almeida <leorochael () gmail ! com>
Date:       2012-12-09 23:06:27
Message-ID: CAMxX_oOT5gYjWPgFeFBPoORG1MGcZZghFV-aBuw23jj=8EXqYw () mail ! gmail ! com
[Download RAW message or body]

Here's Guido's official explanation for the divmod behaviour:

http://python-history.blogspot.com.br/2010/08/why-pythons-integer-division-floors.html

IMHO we should treat negative offsets specially, doing the divmod()
with -60 in that case.

Regards,

Leo

On Fri, Dec 7, 2012 at 5:22 PM, Juan A. Diaz <nueces@ravvit.net> wrote:
>
>>>> secconds / 60
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic