MCPcopy Index your code
hub / github.com/RustPython/RustPython / isoformat

Method isoformat

Lib/_pydatetime.py:1113–1122  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1111 return str(self)
1112
1113 def isoformat(self):
1114 """Return the date formatted according to ISO.
1115
1116 This is 'YYYY-MM-DD'.
1117
1118 References:
1119 - https://www.w3.org/TR/NOTE-datetime
1120 - https://www.cl.cam.ac.uk/~mgk25/iso-time.html
1121 """
1122 return "%04d-%02d-%02d" % (self._year, self._month, self._day)
1123
1124 __str__ = isoformat
1125

Callers 15

adapt_dateFunction · 0.45
adapt_datetimeFunction · 0.45
test_isoformatMethod · 0.45
test_fromisoformatMethod · 0.45
test_isoformatMethod · 0.45

Calls

no outgoing calls