This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients Miguel.de.Val.Borro, belopolsky, daniel.urban
Date 2011-08-19.22:53:10
SpamBayes Score 2.3793154e-05
Marked as misclassified No
Message-id <1313794391.27.0.770303916066.issue12772@psf.upfronthosting.co.za>
In-reply-to
Content
You can easily get the fractional day value using existing functionality:


>>> from datetime import *
>>> (datetime(2011,8,15,18,30) -  datetime(2011,8,13,12,0)) / timedelta(1)
2.2708333333333335
>>> (datetime(2011,8,15,18,30) -  datetime(1970,1,1)) / timedelta(1)
15201.770833333334

In some sense this request is a duplicate of issue2736.
History
Date User Action Args
2011-08-19 22:53:11belopolskysetrecipients: + belopolsky, daniel.urban, Miguel.de.Val.Borro
2011-08-19 22:53:11belopolskysetmessageid: <1313794391.27.0.770303916066.issue12772@psf.upfronthosting.co.za>
2011-08-19 22:53:10belopolskylinkissue12772 messages
2011-08-19 22:53:10belopolskycreate