I am trying to get my last function in my perl program to work where it will take the timestamp and will incriment it my a value so if i want to incriment the day value by 7 and it starts at 10 then the day will be 17 but everything else in the timestamp will remain the same. This also works if they month or week value is to be incrimented by a value. any help would be appreciated

Almost anytime you are doing something with dates you want to convert the date into epoch seconds and then do your calculations and convert back to a human readable date if necessary. -------------------------------------------------

I have been trying to figure out how to do the calculations but i am still having trouble. Below i have made some modifications to my last sub function but when i try to run the file it just hangs and does nothing.

Use one of these: http://search.cpan.org/~stbey/Date-Calc-5.4/Calc.pod http://search.cpan.org/author/SBECK/Date-Manip-5.54/lib/Date/Manip.pod http://search.cpan.org/~drolsky/DateTime-0.45/lib/DateTime.pm