(self, timestamp=None)
return email.utils.formatdate(timestamp, usegmt=True)
Return the current date and time formatted for a message header.
Return the current date and time formatted for a message header.
Return the current date and time formatted for a message header .
def date_time_string(self, timestamp=None):
        """Return the current date and time formatted for a message header."""
        if timestamp is None:
            timestamp = time.time()
        return email.utils.formatdate(timestamp, usegmt=True)
def date_time_string ( self , timestamp = None ) : if timestamp is None : timestamp = time . time ( ) return email . utils . formatdate ( timestamp , usegmt = True )