MCPcopy 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
144def get_local_timezone() -> str:
145 return datetime.datetime.now().astimezone().tzname() or ''

Calls 3

tznameMethod · 0.80
astimezoneMethod · 0.80
nowMethod · 0.45