📌  相关文章
📜  获取本地时区python代码示例

📅  最后修改于: 2022-03-11 14:45:57.078000             🧑  作者: Mango

代码示例1
import datetime

now = datetime.datetime.now()
local_now = now.astimezone()
local_tz = local_now.tzinfo
local_tzname = local_tz.tzname(local_now)
print(local_tzname)