I need to remove the “:” from a 24hr time variable e.g “13:48”
Appreciate any help with a script to do that.
I assume it would use these elements but have no idea how to use them correctly.
- Code: Select all
s = indigo.variables["TimeNow2400"].value
print(s.translate({ord(':'): None}))
indigo.variable.updateValue("TimeNow2400")
Thanks,
Carl