Link to home
Start Free TrialLog in
Avatar of skynergy
skynergy

asked on

Increment Current Time with x seconds

How can I increment the current DateTime with a x amount of seconds? So for example I want to have a TDateTime of Now + 30 secs returning a TDateTime. Remember that if the current time is lets say 20 secs away from the hour it should increment the hour as well. The same with the day if it's a couple of seconds away from the end of the day. Thanx in advance.
ASKER CERTIFIED SOLUTION
Avatar of kretzschmar
kretzschmar
Flag of Germany 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 skynergy
skynergy

ASKER

No, sorry that doesn't work. It doesn't increment now with that number of seconds.
Oops, it does! Sorry I made a mistake in some other part of my code. Thank you for This simple answer ;-)