jdhao's digital space
Recent content on jdhao's digital space
马上订阅 jdhao's digital space RSS 更新: https://jdhao.github.io/index.xml
Get Current Time with Time Zone Info in Python
2020年4月17日 21:54
I am trying to generate a custom time format using the Python datetime
package. My original code is:
from datetime import datetime
print(datetime.now().strftime("%Y-%m-%d %H:%M:%S%z"))