add and subtract day/week/month/year from unix time?
Posted on 2004-09-17
hi, topic says it all except that it must compensate for DST and such other things...
perfect answer would be 2 functions (add & sub) which take a unix timestamp and a value defining what unit (day, week, month, year)
i've tried alot of things myself, nothing seems to be perfect :)