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)
| 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 |
no outgoing calls