MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / UtcTimezone

Class UtcTimezone

suds/sax/date.py:286–308  ·  view source on GitHub ↗

The UTC timezone. http://docs.python.org/library/datetime.html#datetime.tzinfo

Source from the content-addressed store, hash-verified

284
285
286class 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
311class LocalTimezone(datetime.tzinfo):

Callers 2

utcMethod · 0.90
tzinfo_from_matchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected