Miguel de Val Borro <miguel.de...@gmail.com> added the comment:

Thanks, I need the fractional day added to the ordinal day of the month. Using 
the timedelta division it would be:

>>> from __future__ import division
>>> dt = datetime.datetime(2008, 5, 8, 13, 35, 41, 567777)
>>> dt.day + (dt-datetime.datetime(dt.year, dt.month, 
>>> dt.day))/datetime.timedelta(1)
8.566453330752315

Then it simply becomes a one line function so I'm closing this ticket.

----------
status: pending -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12772>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to