Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/kubernetes-client/python
/ format_rfc3339
Function
format_rfc3339
kubernetes/base/config/dateutil.py:103–107 ·
view source on GitHub ↗
(date_time)
Source
from the content-addressed store, hash-verified
101
102
103
def
format_rfc3339(date_time):
104
if
date_time.tzinfo is None:
105
date_time = date_time.replace(tzinfo=UTC)
106
date_time = date_time.astimezone(UTC)
107
return
date_time.strftime(
'%Y-%m-%dT%H:%M:%SZ'
)
Callers
3
test_user_exec_auth_with_expiry
Method · 0.70
test_format_rfc3339
Method · 0.70
_refresh_gcp_token
Method · 0.70
Calls
1
replace
Method · 0.45
Tested by
2
test_user_exec_auth_with_expiry
Method · 0.56
test_format_rfc3339
Method · 0.56