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

Method isoformat

tools/python-3.11.9-amd64/Lib/datetime.py:1043–1052  ·  view source on GitHub ↗

Return the date formatted according to ISO. This is 'YYYY-MM-DD'. References: - http://www.w3.org/TR/NOTE-datetime - http://www.cl.cam.ac.uk/~mgk25/iso-time.html

(self)

Source from the content-addressed store, hash-verified

1041 return str(self)
1042
1043 def isoformat(self):
1044 """Return the date formatted according to ISO.
1045
1046 This is 'YYYY-MM-DD'.
1047
1048 References:
1049 - http://www.w3.org/TR/NOTE-datetime
1050 - http://www.cl.cam.ac.uk/~mgk25/iso-time.html
1051 """
1052 return "%04d-%02d-%02d" % (self._year, self._month, self._day)
1053
1054 __str__ = isoformat
1055

Callers 4

adapt_dateFunction · 0.45
adapt_datetimeFunction · 0.45
setMethod · 0.45
file_mtimeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected