[RESOLVED] Adding to a date?
I'm trying to create a timescale, and need to add 5 minutes to a date every 10 seconds, i have a timer setup on the right interval, but i can't figure out how to add 10 minutes to a DATE variable.
Doing MyTime = MyTime + 10 just adds 10 days, i tried using 0.1 and it went wacko and displayed a seemingly random time. Any help?
Re: [RESOLVED] Adding to a date?
Quote:
Originally Posted by Teseng
I'm trying to create a timescale, and need to add 5 minutes to a date every 10 seconds, i have a timer setup on the right interval, but i can't figure out how to add 10 minutes to a DATE variable.
Doing MyTime = MyTime + 10 just adds 10 days, i tried using 0.1 and it went wacko and displayed a seemingly random time. Any help?
0.1 is interpreted as 10% of a day which is not 10 minutes. You're probably thinking of second.millisecond precision wherein 0.1 or 10% of a second correctly converts to 100 milliseconds.