Sentinel time import or int how to convert to string?

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?

@javierruizjimenez you will need to convert the type before you can concatenate the value as a single string. I have an example here that will better explain.

You could also use the string function in the decimal import.

Thanks @hcrhall

I missed the type-conversion section in the