def date_time(self):
        year, month, day, hh, mm, ss, wd, y, z = time.gmtime(time.time())
        s = "%s, %02d %3s %4d %02d:%02d:%02d GMT" % (
                self.weekdayname[wd],
                day, self.monthname[month], year,
                hh, mm, ss)
        return s
Return the current date and time formatted for a MIME header.
dataset/ETHPy150Open babble/babble/include/jython/Lib/logging/handlers.py/SMTPHandler.date_time