11 lines
216 B
Python
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'))
|
|
|