ZhangZhihui's Blog |
|
||
2020年5月2日
摘要:
>>> from datetime import date>>> from datetime import datetime>>> import pytz>>> import tzlocal >>> loc_tz = tzlocal.get_localzone()>>> loc_tz<DstTzIn 阅读全文
摘要:
from datetime import datetime as dt import pytz import tzlocal def get_my_timezone(): return pytz.timezone('Asia/Shanghai') def get_local_timezone(): 阅读全文
|
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |