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

Method set_current_tz

tests/_common.py:247–253  ·  view source on GitHub ↗
(self, tzval)

Source from the content-addressed store, hash-verified

245 return os.environ.get('TZ', UnsetTz)
246
247 def set_current_tz(self, tzval):
248 if tzval is UnsetTz and 'TZ' in os.environ:
249 del os.environ['TZ']
250 else:
251 os.environ['TZ'] = tzval
252
253 time.tzset()
254
255
256class TZWinContext(TZContextBase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected