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)
| 1126 | return str(self) |
| 1127 | |
| 1128 | def isoformat(self): |
| 1129 | """Return the date formatted according to ISO. |
| 1130 | |
| 1131 | This is 'YYYY-MM-DD'. |
| 1132 | |
| 1133 | References: |
| 1134 | - https://www.w3.org/TR/NOTE-datetime |
| 1135 | - https://www.cl.cam.ac.uk/~mgk25/iso-time.html |
| 1136 | """ |
| 1137 | return "%04d-%02d-%02d" % (self._year, self._month, self._day) |
| 1138 | |
| 1139 | __str__ = isoformat |
| 1140 |
no outgoing calls