I have one struct tm. And I need to add some fixed interval (given in xx years, xx months, xx days) to the tm struct. Is there any standard functio
I suggest to convert the date at hand to a number of days first. Adding an interval is trivial then. Afterwards, convert the number back to a date.
You can find algorithms for convernig a date to a number of days and back at e.g. http://alcor.concordia.ca/~gpkatch/gdate-algorithm.html