Python 오늘 날짜 얻기

1 개요[ | ]

Python 오늘 날짜 얻기
from datetime import datetime
today = datetime.today().strftime('%Y-%m-%d')
print( today ) # 2020-01-15
import time
t = time.time()
today = time.strftime("%Y-%m-%d", time.gmtime(t))
print( today ) # 2020-01-15

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}