code: def tzname(self, dt):
          
          # total_seconds was introduced in Python 2.7
          if hasattr(self.__offset, "total_seconds"):
              total_seconds = self.__offset.total_seconds()
          else:
              total_seconds = (self.__offset.days * 24 * 60 * 60) + \
                              (self.__offset.seconds)
  
          hours = total_seconds // (60 * 60)
          total_seconds -= hours * 60 * 60
  
          minutes = total_seconds // 60
          total_seconds -= minutes * 60
  
          seconds = total_seconds // 1
          total_seconds -= seconds
  
          if seconds:
              return "%+03d:%02d:%02d" % (hours, minutes, seconds)
          return "%+03d:%02d" % (hours, minutes)
docs: http://docs.python.org/library/datetime.html#datetime.tzinfo.tzname