Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
23
def
datetime_to_header(dt: datetime) -> str:
24
return
formatdate(calendar.timegm(dt.timetuple()))
25
26
27
class
BaseHeuristic:
Callers
2
update_headers
Method · 0.70
update_headers
Method · 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…