The UTC timezone. http://docs.python.org/library/datetime.html#datetime.tzinfo
| 284 | |
| 285 | |
| 286 | class UtcTimezone(FixedOffsetTimezone): |
| 287 | """The UTC timezone. |
| 288 | |
| 289 | http://docs.python.org/library/datetime.html#datetime.tzinfo |
| 290 | |
| 291 | """ |
| 292 | |
| 293 | def __init__(self): |
| 294 | """Constructor.""" |
| 295 | FixedOffsetTimezone.__init__(self, datetime.timedelta(0)) |
| 296 | |
| 297 | def tzname(self, dt): |
| 298 | """ |
| 299 | http://docs.python.org/library/datetime.html#datetime.tzinfo.tzname |
| 300 | |
| 301 | """ |
| 302 | return 'UTC' |
| 303 | |
| 304 | def __str__(self): |
| 305 | return 'UtcTimezone' |
| 306 | |
| 307 | def __unicode__(self): |
| 308 | return 'UtcTimezone' |
| 309 | |
| 310 | |
| 311 | class LocalTimezone(datetime.tzinfo): |
no outgoing calls
no test coverage detected