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

Function _strftime

tools/python-3.11.9-amd64/Lib/xmlrpc/client.py:285–294  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

283
284
285def _strftime(value):
286 if isinstance(value, datetime):
287 return _iso8601_format(value)
288
289 if not isinstance(value, (tuple, time.struct_time)):
290 if value == 0:
291 value = time.time()
292 value = time.localtime(value)
293
294 return "%04d%02d%02dT%02d:%02d:%02d" % value[:6]
295
296class DateTime:
297 """DateTime wrapper for an ISO 8601 string or time tuple or

Callers 2

__init__Method · 0.85
dump_datetimeMethod · 0.85

Calls 2

_iso8601_formatFunction · 0.85
timeMethod · 0.45

Tested by

no test coverage detected