PyDocs

Nav

Internet Data Handling

format_datetime

email.utils

function · Added in 3.3 (source)
  • format_datetime(dt, usegmt=False)
Turn a datetime into a date string as specified in RFC 2822.

If usegmt is True, dt must be an aware datetime with an offset of zero.  In
this case 'GMT' will be rendered instead of the normal +0000 required by
RFC2822.  This is to support HTTP headers involving date stamps.
0 Examples
No examples for email.utils/format_datetime.
See Also
No see-alsos for email.utils/format_datetime
0 Notes
No notes for format_datetime