본 포스팅은 현재 날짜를 나노세컨드로, 나노세컨드를 현재 날짜로 변경하는 방법에 대한 설명입니다. Import import datetime import pytz #pip install pytz import time pytz는 타임존을 설정하기위해 사용 현재일시를 한국시간으로 조회하기위해 사용 datetime to nanosecond cur_date = datetime.datetime.now(pytz.timezone('Asia/Seoul')) cus_s = str(int(time.mktime(cur_date.timetuple()))) cur_time = cus_s + '.' + cur_date.strftime("%f") cur_date : 현재 일자 cur_s : nanosecond를 제외한 현재 일자를 ..