(value)
| 257 | |
| 258 | |
| 259 | def _strftime(value): |
| 260 | if isinstance(value, datetime): |
| 261 | return _iso8601_format(value) |
| 262 | |
| 263 | if not isinstance(value, (tuple, time.struct_time)): |
| 264 | if value == 0: |
| 265 | value = time.time() |
| 266 | value = time.localtime(value) |
| 267 | |
| 268 | return "%04d%02d%02dT%02d:%02d:%02d" % value[:6] |
| 269 | |
| 270 | class DateTime: |
| 271 | """DateTime wrapper for an ISO 8601 string or time tuple or |
no test coverage detected
searching dependent graphs…