'Return local time tuple compatible with time.localtime().'

def timetuple(self):

    dst = self.dst()
    if (dst is None):
        dst = (-1)
    elif dst:
        dst = 1
    else:
        dst = 0
    return _build_struct_time(self.year, self.month, self.day, self.hour, self.minute, self.second, dst)
