Python : dateVar.strftime('format') : 스트링포맷타임 : date를 문자열 포맷으로

horiz.d·2021년 12월 2일
0

파이썬 꿀단지

목록 보기
29/35

https://dojang.io/mod/page/view.php?id=2463




dateVar.strftime('format')

import time
import datetime

DateTime = datetime.datetime.now()

DT = DateTime.strftime('%y%m%d')

print(DateTime)
profile
가용한 시간은 한정적이고, 배울건 넘쳐난다.

0개의 댓글