Having trouble understanding how a date and a time together doesn’t work to make calculations
In short, when a test finishes I execute the following code and store in a json
Set ScriptData.ExecutionEndTime to formattedTime(“MM/dd/yyyy HH:mm”)
So I might have the value “08/14/2025 14:39” in my json but what I cannot figure out is if I read that value in from the json it cannot do a calculation on it to see if its been say 12 hours since last execution
Does this work?
Set ABC to "08/14/2025 14:39"
log formattedTime("[mo]/[da]/[year] [hr24]:[mi]", ABC) + 12 days
Or you can do
// Run "log JSONFormat(the timeInputFormat)" to check what date time formats are currently supported by SenseTalk.
// The format "[mo]/[da]/[year] [hr24]:[mi]" is not listed there.
// so you can add it to the timeInputFormat global property
insert "[mo]/[da]/[year] [hr24]:[mi]" into the timeInputFormat
Set ABC to "08/14/2025 14:39"
log ABC + 12 days
This works, thanks
I was stuck on using the Unicode style for the format call out since it was partially working