MCPcopy Create free account
hub / github.com/dateutil/dateutil / get

Method get

src/dateutil/zoneinfo/__init__.py:114–128  ·  view source on GitHub ↗

Wrapper for :func:`ZoneInfoFile.zones.get`. This is a convenience method for retrieving zones from the zone dictionary. :param name: The name of the zone to retrieve. (Generally IANA zone names) :param default: The value to return in the eve

(self, name, default=None)

Source from the content-addressed store, hash-verified

112 self.metadata = None
113
114 def get(self, name, default=None):
115 """
116 Wrapper for :func:`ZoneInfoFile.zones.get`. This is a convenience method
117 for retrieving zones from the zone dictionary.
118
119 :param name:
120 The name of the zone to retrieve. (Generally IANA zone names)
121
122 :param default:
123 The value to return in the event of a missing key.
124
125 .. versionadded:: 2.6.0
126
127 """
128 return self.zones.get(name, default)
129
130
131# The current API has gettz as a module function, although in fact it taps into

Callers 4

_importer_stacklevelFunction · 0.45
gettzFunction · 0.45

Calls

no outgoing calls

Tested by 2