How to Combining a Parsed time with today’s date in Python?

How to Combining a Parsed time with today’s date in Python?

datetime.combine(date, time)

Here, have to pass a datetime.date object as the first argument, and a datetime.time object as the second argument.

>>> import datetime
>>> today = datetime.date.today()
>>> time = datetime.strptime('09:30', '%H:%M').time()
>>> datetime.combine(today, time)

datetime.datetime(2018, 8, 2, 9, 30)

 

source:
https://docs.python.org/3/library/datetime.html#datetime.datetime.combine