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