728x90
반응형
from dateutil import tz
from datetime import datetime
utc_zone = tz.gettz('UTC')
seoul_zone = tz.gettz('Asia/Seoul')
utc = datetime.now()
current_time = utc.replace(tzinfo=utc_zone).astimezone(seoul_zone)
포맷형식 바꾸기
nowstr = current_time.strftime('%Y-%m-%d %H:%M:%S')
반응형
'Deep learning > 소스' 카테고리의 다른 글
yolov5 coco data set training (0) | 2021.09.17 |
---|---|
classification mnist-LeNet-5 (0) | 2021.04.03 |
yolov5 모델pt (0) | 2021.03.26 |
classification model code (0) | 2021.01.14 |
20201110-yolov5로 데이터 학습 (2) | 2020.11.04 |