Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dateutil/dateutil
/ get_current_tz
Method
get_current_tz
tests/_common.py:124–125 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
122
_guard_allows_change = False
123
124
def
get_current_tz(self):
125
return
os.environ.get(
'TZ'
, UnsetTz)
126
127
def
set_current_tz(self, tzval):
128
if
tzval is UnsetTz and
'TZ'
in os.environ:
Callers
nothing calls this directly
Calls
1
get
Method · 0.45
Tested by
no test coverage detected