I have a time variable called LightOn set to 14:00:00. How can I set it to NewTime=LightOn+5 minutes so that the NewTime variable reads 14:05:00? In other words, the Math function does not allow any addition/subtraction except with real numbers, not dates or times. Is there a workaround?
Thanks in advance.
Topics related to MLServer 4
2 posts • Page 1 of 1
- Site Admin
- Posts: 10535
- Joined: Fri Feb 07, 2003 8:56 am
- Location: Planet Earth
Math doesn't support math on time or date values. Something that will get added in the future. Right now you'd have to do something in script that would convert the time to seconds add in the new seconds and then convert it back to a H:M:S string. Or do all the calculation based on the absolute time of day in seconds where 14:00:00 = 50400 14:05:00 = 50700.
Who is online
Users browsing this forum: No registered users and 1 guest