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

Function _iso8601_format

Lib/xmlrpc/client.py:251–256  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

249
250
251def _iso8601_format(value):
252 if value.tzinfo is not None:
253 # XML-RPC only uses the naive portion of the datetime
254 value = value.replace(tzinfo=None)
255 # XML-RPC doesn't use '-' separator in the date part
256 return value.isoformat(timespec='seconds').replace('-', '')
257
258
259def _strftime(value):

Callers 2

_strftimeFunction · 0.85
make_comparableMethod · 0.85

Calls 2

replaceMethod · 0.45
isoformatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…