Convert datetime object to time object



examples/datetime/convert_datetime_to_time.py
import datetime

ts = datetime.datetime.now().time()
print(ts)      # 09:07:02.846346