I am using Sentinel to call an API that requires some dates as parameters.
Sentinel time import is able to add and substract dates, but I have not been able to convert any of the results into a String in order to build a param=value string.
Example:
end_date = time.load(time.now).add(time.hour * 1)
end_date_str = "end_date=" + end_date
gives error in the line adding “end_date=” to end_date .
Error: company-advisory.sentinel:nn:mm: math: non-number operation on different types (string/memoized_remote_object)
I have tried to extract the individual elements of a date but again can’t concatenate strings and ints.
end_date_year = time.load(time.now).add(time.hour * 1).year
end_date_str = "end_date=" + end_date_year
Error: company-advisory.sentinel:nn:mm: math: non-number operation on different types (string/int)
Any ideas?