When I write a python script/rule which uses datetime, this does what I expect:
import datetime
tomorrow = datetime.datetime.now() + datetime.timedelta(days=1)
but the following fails with
TypeError: unsupported operand type(s) for +: ‘java.sql.Timestamp’ and 'timedelta’
import datetime
now = datetime.datetime.now()
tomorrow = now + datetime.timedelta(days=1)
There seems to be some implicit type conversion going on. I suspect I need to understand better the differences between python and jython… Where do I learn please? And how do I fix the above?
Thanks