PythonDateTimedatetime.today
datetime.utcnow

datetime.todayDateTime

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