olisaac
asked on
Add 5 minutes
Simple question:
how can I add 5 minutes to a TdateTime variable
and same question for a timestamp variable
Thanks
how can I add 5 minutes to a TdateTime variable
and same question for a timestamp variable
Thanks
datetime := datetime + 1/(24*20);
sorry
datetime := datetime + 1/(24*12);
datetime := datetime + 1/(24*12);
another method, better readable
const
MinutesPerDay = 1440;
DateTime := DateTime + 1/(MinutesPerDay*5);
meikl ;-)
const
MinutesPerDay = 1440;
DateTime := DateTime + 1/(MinutesPerDay*5);
meikl ;-)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
kretzschmar, your answers don't give me the right value
It's ok Jacco
Thank you Jacco and kretzschmar for your quick answers
It's ok Jacco
Thank you Jacco and kretzschmar for your quick answers
as you mean,
(of course my first comment was wrong (typo))
meikl ;-)
(of course my first comment was wrong (typo))
meikl ;-)