Python bekommt Tageszeit
from datetime import datetime
now = datetime.now()
current_time = now.strftime("%H:%M:%S")
print("Current Time =", current_time)
Healthy Hedgehog
from datetime import datetime
now = datetime.now()
current_time = now.strftime("%H:%M:%S")
print("Current Time =", current_time)
import datetime
dt = datetime.datetime.today()
year = dt.year
month = dt.month
day = dt.day