I\'m setting a datetime var as such:
fulldate = datetime.datetime.strptime(date + \' \' + time, \"%Y-%m-%d %H:%M:%S.%f\")
where date and time a
Use timedelta
To increment by 500 ms:
fulldate = datetime.datetime.strptime(date + ' ' + time, "%Y-%m-%d %H:%M:%S.%f")
fulldate = fulldate + datetime.timedelta(milliseconds=500)
You can use it to increment minutes, hours, days etc. Documentation:
https://docs.python.org/2/library/datetime.html#timedelta-objects