Teile 10 bis 12.
This commit is contained in:
10
teil11/formatted_date.py
Normal file
10
teil11/formatted_date.py
Normal file
@@ -0,0 +1,10 @@
|
||||
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'))
|
||||
|
Reference in New Issue
Block a user