Message152556
midnight is represented by datetime.time(0,0,0). However, this time (unlike all other valid times, including datetime.time(0,0,1)) evalutes to false in if conditions:
import datetime
if datetime.time(0,0,0):
print "datetime.time(0,0,0) is not a bug!"
else:
print "datetime.time(0,0,0) is a bug!"
if datetime.time(0,0,1):
print "datetime.time(0,0,1) is not a bug!"
else:
print "datetime.time(0,0,1) is a bug!" |
|
Date |
User |
Action |
Args |
2012-02-03 20:43:16 | Lakin.Wecker | set | recipients:
+ Lakin.Wecker |
2012-02-03 20:43:16 | Lakin.Wecker | set | messageid: <1328301796.8.0.996607861145.issue13936@psf.upfronthosting.co.za> |
2012-02-03 20:43:16 | Lakin.Wecker | link | issue13936 messages |
2012-02-03 20:43:16 | Lakin.Wecker | create | |
|