parsedatetimethe parse procedure expects a timetuple()as a parameter sourceTimeand must carry any time zone information that you include in it, since I donβt remember to write any code that overrides it. If it is not, this is a mistake and will notify me.
You can use the code, for example, as the answer above to add a TZ offset after the procedure parse()returns what it determined the date and time to:
import parsedatetime as pdt
cal = pdt.Calendar()
start = datetime.datetime.now().timetuple()
parsed, flag = cal.parse('in 1 hr', start)
timetuple parsed timedelta