파이썬/날짜,시간 데이터 다루기
현재 시간 타임스탬프(timestamp)
Aiden_
2022. 1. 19. 22:45
import time
timestamp = time.strftime("%Y%m%d-%H%M%S")
timestamp
# 오늘 날짜만 가져오기
import time
timestamp = time.strftime("%Y%m%d-%H%M%S")
timestamp.split('-')[0]