Python DateTime jetzt nur noch Stunde und Minute
from datetime import datetime
hour_and_minute = datetime.now().strftime("%H:%M")
# "14:09"
Leo
from datetime import datetime
hour_and_minute = datetime.now().strftime("%H:%M")
# "14:09"
import datetime
currentime = datetime.datetime.now()
time = currentime.strftime('%H:%M')
print(time)
import datetime
now = datetime.datetime.now()
print(now.year, now.month, now.day, now.hour, now.minute, now.second)