MCPcopy Index your code
hub / github.com/python/cpython / _format_timetuple_and_zone

Function _format_timetuple_and_zone

Lib/email/utils.py:230–237  ·  view source on GitHub ↗
(timetuple, zone)

Source from the content-addressed store, hash-verified

228
229
230def _format_timetuple_and_zone(timetuple, zone):
231 return '%s, %02d %s %04d %02d:%02d:%02d %s' % (
232 ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'][timetuple[6]],
233 timetuple[2],
234 ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
235 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][timetuple[1] - 1],
236 timetuple[0], timetuple[3], timetuple[4], timetuple[5],
237 zone)
238
239def formatdate(timeval=None, localtime=False, usegmt=False):
240 """Returns a date string as specified by RFC 2822, e.g.:

Callers 1

format_datetimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…