| 5229 | # TestDateTime tested most of this. datetime adds a twist to the |
| 5230 | # DST flag. |
| 5231 | class DST(tzinfo): |
| 5232 | def __init__(self, dstvalue): |
| 5233 | if isinstance(dstvalue, int): |
| 5234 | dstvalue = timedelta(minutes=dstvalue) |
| 5235 | self.dstvalue = dstvalue |
| 5236 | def dst(self, dt): |
| 5237 | return self.dstvalue |
| 5238 | |
| 5239 | cls = self.theclass |
| 5240 | for dstvalue, flag in (-33, 1), (33, 1), (0, 0), (None, -1): |
no outgoing calls