import datetime x= datetime.datetime.now() y = x + datetime.timedelta(0,5) print(x.time()) print(y.time())