Created
April 4, 2018 18:54
-
-
Save iuridiniz/80f7cdf826df0f85713e4730d72f5d6a to your computer and use it in GitHub Desktop.
Get python timezone name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ctypes | |
libc = ctypes.CDLL('libc.so.6') | |
tzname = (ctypes.c_char_p * 2).in_dll(libc, 'tzname') | |
for n in tzname: print(n) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment