I have a time_t structure with the current date/time.
What I want is to work out yesterday's date from this. Just subtracting one from the day is not enough as it needs to take the first of the month into account and also the first of Jan into account. As month and/or year could change under these circumstances.
Obviously I can write code to handle all these cases and wrap it up in a function but I just wondered if there already existed an easier way of doing this?