MCPcopy Create free account
hub / github.com/psf/cachecontrol / datetime_to_header

Function datetime_to_header

cachecontrol/heuristics.py:23–24  ·  view source on GitHub ↗
(dt: datetime)

Source from the content-addressed store, hash-verified

21
22
23def datetime_to_header(dt: datetime) -> str:
24 return formatdate(calendar.timegm(dt.timetuple()))
25
26
27class BaseHeuristic:

Callers 2

update_headersMethod · 0.70
update_headersMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…