code: def utcoffset(self, dt):
          
          tt = _localtime(_mktime((dt.year, dt.month, dt.day,
                   dt.hour, dt.minute, dt.second, dt.weekday(), 0, -1)))
          if tt.tm_isdst > 0: return _dstoffset
          return _stdoffset
docs: datetime -> minutes east of UTC (negative for west of UTC).