Files
pythonkurs/teil11/formatted_date.py
2023-03-28 12:26:50 +02:00

11 lines
216 B
Python

from datetime import datetime
heute = datetime.now()
print(type(heute))
print(heute.strftime('%c %X'))
print(heute.time().strftime('%X'))
print(heute.date().strftime('%x'))
print(heute.strftime('%d.%m.%y %H:%M'))