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

Function _getdate

Lib/http/cookies.py:237–242  ·  view source on GitHub ↗
(future=0, weekdayname=_weekdayname, monthname=_monthname)

Source from the content-addressed store, hash-verified

235 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
236
237def _getdate(future=0, weekdayname=_weekdayname, monthname=_monthname):
238 from time import gmtime, time
239 now = time()
240 year, month, day, hh, mm, ss, wd, y, z = gmtime(now + future)
241 return "%s, %02d %3s %4d %02d:%02d:%02d GMT" % \
242 (weekdayname[wd], day, monthname[month], year, hh, mm, ss)
243
244
245class Morsel(dict):

Callers 1

OutputStringMethod · 0.85

Calls 1

timeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…