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 Vincentdavis
Recipients BreamoreBoy, Vincentdavis, belopolsky, brett.cannon, chris.jerdonek, ezio.melotti, pitrou
Date 2015-01-03.03:41:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420256511.43.0.836049774453.issue15933@psf.upfronthosting.co.za>
In-reply-to
Content
Rather than dealing with the time delta how about getting the time twice and checking that we are between and at least once we have the same day.
i.e.

ts1 = time()
today = self.theclass.today()
ts2 = time()
todayagain1 = self.theclass.fromtimestamp(ts1)
todayagain2 = self.theclass.fromtimestamp(ts2)
#This would then cover all the cases could separate these cases, I dontsee the need for a loop.
self.assertTrue(today == todayagain1 or today == todayagain2 
                or todayagain1 <= today <= todayagain1)
History
Date User Action Args
2015-01-03 03:41:51Vincentdavissetrecipients: + Vincentdavis, brett.cannon, belopolsky, pitrou, ezio.melotti, chris.jerdonek, BreamoreBoy
2015-01-03 03:41:51Vincentdavissetmessageid: <1420256511.43.0.836049774453.issue15933@psf.upfronthosting.co.za>
2015-01-03 03:41:51Vincentdavislinkissue15933 messages
2015-01-03 03:41:50Vincentdaviscreate