day and time logic
my scenario is i have a loop. and first loop pass, i am storing the system date and sytem time in a field TIMESTAMP. then in 2nd loop pass , the time is incremented to 2 mins from the previous TIMESTAMP. So in case, 2minutes is added . when it reaches 60 minutes, automatically it is should become 1 hour and similarly is the casee for 1day.
is there any function m odule .
can you provide me some coding for th is
points will be rewarded
thanks in advance