from datetime import datetime
from pytz import timezone
# 시스템 시간
print(datetime.now())
# KST
print(datetime.now(timezone('Asia/Seoul')).strftime('%Y-%m-%d %H:%M:%S'))
datetime.now(timezone(...))
'프로그래밍' 카테고리의 다른 글
[SSMS] Execute current statement (0) | 2020.05.11 |
---|---|
create pipfile & pipfile.lock (0) | 2019.05.23 |
Java - Local variable counter defined in an enclosing scope must be final or effectively final. (0) | 2018.04.18 |
OpenAI gym atari install for windows 10 (0) | 2018.01.31 |
MySQL-Python for Python 3+ on windows 10 (0) | 2017.05.26 |
댓글