<br><br><div><span class="gmail_quote">On 8/1/07, <b class="gmail_sendername">Robert Dailey</b> <<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I'm well aware of the datetime module, however it is really inconsistent and useless to me. In order to do any arithmetic on time objects, I have to use the 'timedelta' class, which doesn't even allow me to do all the math I want to do.
<br><br>For example, I want to do "1 / timeobj", where timeobj might represent a time in the format of "00:00:00.000000". Do I have to code my own class for this, or is there some other third party library out there that will allow me to do this?
<br><br>Thanks.<br>
<br>--<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div>
<br>Convert each date you use to a timestamp, make all your calculations using those timestamps, and then when you need a date back just convert the desired timestamp to date time format of your choosing.<br clear="all"><br>
-- <br>Please visit this site and play my RPG!  <br><br><a href="http://www.1km1kt.net/rpg/Marinci.php">http://www.1km1kt.net/rpg/Marinci.php</a><br><br>