Date/Time functions missing?
Hello everyone,
Arien't there any date/time functions to add and subtract (hours, minutes, seconds) to derive a new date/time?
For instance, if I wanted to add 360 minutes to a fixed date/time to get a future date/time how would I do it (without having to code the whole thing)?
Thanks for the help! All replies appreciated.
-charliev
Arien't there any date/time functions to add and subtract (hours, minutes, seconds) to derive a new date/time?
For instance, if I wanted to add 360 minutes to a fixed date/time to get a future date/time how would I do it (without having to code the whole thing)?
Thanks for the help! All replies appreciated.
-charliev
//Try
int FutureTime=CurTime()+(360*60);
Print("FutureTime=",TimeToStr(FutureTime));
Hello everyone,
Arien't there any date/time functions to add and subtract (hours, minutes, seconds) to derive a new date/time?
For instance, if I wanted to add 360 minutes to a fixed date/time to get a future date/time how would I do it (without having to code the whole thing)?
Thanks for the help! All replies appreciated.
-charliev
Arien't there any date/time functions to add and subtract (hours, minutes, seconds) to derive a new date/time?
For instance, if I wanted to add 360 minutes to a fixed date/time to get a future date/time how would I do it (without having to code the whole thing)?
Thanks for the help! All replies appreciated.
-charliev
//Try
int FutureTime=CurTime()+(360*60);
Print("FutureTime=",TimeToStr(FutureTime));
Yes, converting to seconds before doing the math... gets a little hard when you want to find the time in-between 2 dates.
Thanks for the reply!
-charliev
Arien't there any date/time functions to add and subtract (hours, minutes, seconds) to derive a new date/time?
For instance, if I wanted to add 360 minutes to a fixed date/time to get a future date/time how would I do it (without having to code the whole thing)?
Thanks for the help! All replies appreciated.
-charliev