datetime in python just houres and second at now code example
Example: python datetime now only hour and minute
from datetime import datetime
hour_and_minute = datetime.now().strftime("%H:%M")
# "14:09"
from datetime import datetime
hour_and_minute = datetime.now().strftime("%H:%M")
# "14:09"