Message152038
| Author |
steveire |
| Recipients |
belopolsky, docs@python, steveire, terry.reedy, zacherates |
| Date |
2012年01月26日.22:17:28 |
| SpamBayes Score |
0.00019697682 |
| Marked as misclassified |
No |
| Message-id |
<1327616249.19.0.408812843319.issue13666@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
There are actually other bugs in the same code example:
... def __init__(self): # DST starts last Sunday in March
... d = datetime(dt.year, 4, 1) # ends last Sunday in October
... self.dston = d - timedelta(days=d.weekday() + 1)
... d = datetime(dt.year, 11, 1)
... self.dstoff = d - timedelta(days=d.weekday() + 1)
where does dt come from? this fragment should be in the implementation of dst (in both the GMT1 and GMT2 classes. |
|