Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dbcli/mycli
/ get_local_timezone
Function
get_local_timezone
mycli/packages/special/utils.py:144–145 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
142
143
144
def
get_local_timezone() -> str:
145
return
datetime.datetime.now().astimezone().tzname() or
''
Callers
3
status
Function · 0.90
test_get_local_timezone_returns_tzname
Function · 0.90
test_get_local_timezone_returns_empty_string_when_tzname_is_none
Function · 0.90
Calls
3
tzname
Method · 0.80
astimezone
Method · 0.80
now
Method · 0.45
Tested by
2
test_get_local_timezone_returns_tzname
Function · 0.72
test_get_local_timezone_returns_empty_string_when_tzname_is_none
Function · 0.72