datetime.utcnow
datetime.today
date.today
Returns the current local date and time.
datetime.today()
아래 값을 입력하면 예제에 즉시 반영됩니다.
import
today
print
from datetime import datetime today = datetime.today() print(today) # 2024-06-15 14:30:00.123456