Link to home
Start Free TrialLog in
Avatar of olisaac
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
Avatar of kretzschmar
kretzschmar
Flag of Germany image

datetime := datetime + 1/(24*20);
sorry

datetime := datetime + 1/(24*12);
another method, better readable

const
  MinutesPerDay = 1440;

DateTime := DateTime + 1/(MinutesPerDay*5);

meikl ;-)
ASKER CERTIFIED SOLUTION
Avatar of Jacco
Jacco
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of olisaac
olisaac

ASKER

kretzschmar, your answers don't give me the right value

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 ;-)