I want to add days or weeks to a timestamp of the format yyyymmdd? My first idea would be to convert it to a unix timestamp, add 60 60 24 * $numberofdays to the timestamp and convert it back but I've no idea how on earth I would get the number of seconds since the unix epoch from yyyymmdd.
The other possibility is dissecting the string and going at it procedurally. substr the dd chars, somehow find out if the month of the year has 28,29,30 or 31 days and properly carry over to the next month but the amount of correcting and adding whatever offset fits in that method is slightly disturbing.
Maybe there are some built in calendar functions to help with finding days in a month and such. Anything to help would be appreciated.