Now plus 10 minutes

ddrew

seasoned user
Local time
Today, 17:20
Joined
Jan 26, 2003
Messages
911
Im sure this fairly simple, but can someone tell me how to calculate the time + 10 minutes

= Time() + 10 minutes

Wrong I know, but thats what Im trying to achive!
 
Hi,

you can use the DateAdd() function

DateAdd(interval, number, date)

In you case the interval should be "n" for minutes
 
you can " simply " add with dates...

i.e. Now + #00:10:00#

Now know that a date (like now) is actually a double, where an integer is a day.
Each day consists of 24 hours which each hold 60 minutes.
So...
Now + 10 / 60 / 24 works too....
Or ...
Mike's
Time()+(600/86400)
which is actually Now + ( 60 * 10 ) / 60 secs / 60 mins / 24 hours works too.

I hope you understand now how time "actually" works

Also (offcourse) the dateadd will work as well... but that still hides this " low down and dirty " stuff to you ;)
 

Users who are viewing this thread

Back
Top Bottom