<div>Hi Lucas,</div>
<div> </div>
<div>Actually, the maximum positive 32-bit integer is 2147483647 (see an example for calculating that here: <a href="http://www.velocityreviews.com/forums/t366257-range-of-int-type.html">http://www.velocityreviews.com/forums/t366257-range-of-int-type.html</a>), and I believe that all numbers are signed regardless of size.</div>

<div> </div>
<div>I had to do a lot of date calculation and find mxDateTime to be a wonderful library for calculating dates and elapsed days from a certain date: <a href="http://www.egenix.com/products/python/mxBase/mxDateTime/">http://www.egenix.com/products/python/mxBase/mxDateTime/</a>. One downside is that this module is based on C libraries, so moving to another platform might require some compiling (Windows binaries are provided).</div>

<div> </div>
<div> </div>
<div>Allan<br><br></div>
<div class="gmail_quote">On Wed, May 20, 2009 at 1:05 PM, Lukasz Szybalski <span dir="ltr">&lt;<a href="mailto:szybalski@gmail.com">szybalski@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello,<br>Anybody knows how to overcome this error?<br><br>I have transactions that have effective and expiration dates and I<br>
need to calculate how many days are within each transaction(2 million<br>transactions) and provide a total numbers of days  for that particular<br>year.<br><br>There seem to be a limit of # -999999999 &lt;= days &lt;= 999999999<br>
<br>I&#39;m not sure why ?<br>If 2147483648 is the 32 bit integer limit then I should have a long way to go?<br><br>Is this a bug in the library?<br><br>Thanks,<br>Lucas<br><font color="#888888"><br><br><br>--<br>How to create python package?<br>
<a href="http://lucasmanual.com/mywiki/PythonPaste" target="_blank">http://lucasmanual.com/mywiki/PythonPaste</a><br>_______________________________________________<br>Chicago mailing list<br><a href="mailto:Chicago@python.org">Chicago@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/chicago" target="_blank">http://mail.python.org/mailman/listinfo/chicago</a><br></font></blockquote></div><br>