(self, when)
| 47 | return time.tzname[self._isdst(when)] |
| 48 | |
| 49 | def _isdst(self, when): |
| 50 | tt = (when.year, when.month, when.day, |
| 51 | when.hour, when.minute, when.second, |
| 52 | when.weekday(), 0, 0) |
| 53 | stamp = time.mktime(tt) |
| 54 | tt = time.localtime(stamp) |
| 55 | return tt.tm_isdst > 0 |
| 56 | |
| 57 | |
| 58 | Local = LocalTimezone() |