import datetime
print("timestamp : ",datetime.datetime.now())
# 시간 연산
# timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0)
a = datetime.datetime.now()
b = a + datetime.timedelta(hours=9) # 현재시간 + 9시간
'개발공부 > Python' 카테고리의 다른 글
Python :: 유용한 기능 | 함수 파라미터 설명 (0) | 2022.01.14 |
---|---|
Python :: 유용한 기능 tqdm, 진행 상황 (0) | 2022.01.14 |
Python :: 파일 복사, 이동, 삭제, 파일 명 변경(rename) (0) | 2022.01.14 |
Python :: .txt 파일 읽고 저장 (0) | 2022.01.12 |
Python :: .WAV 파일 병합하기 (0) | 2022.01.12 |