MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _getdate

Function _getdate

tools/python-3.11.9-amd64/Lib/http/cookies.py:246–251  ·  view source on GitHub ↗
(future=0, weekdayname=_weekdayname, monthname=_monthname)

Source from the content-addressed store, hash-verified

244 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
245
246def _getdate(future=0, weekdayname=_weekdayname, monthname=_monthname):
247 from time import gmtime, time
248 now = time()
249 year, month, day, hh, mm, ss, wd, y, z = gmtime(now + future)
250 return "%s, %02d %3s %4d %02d:%02d:%02d GMT" % \
251 (weekdayname[wd], day, monthname[month], year, hh, mm, ss)
252
253
254class Morsel(dict):

Callers 1

OutputStringMethod · 0.85

Calls 1

timeClass · 0.90

Tested by

no test coverage detected