I've been looking at the time options in time.h, and they seem to be somewhat limited. What I want to do is get a timedate value from a file or whatever and compare it to the current timedate. I also want to make some calculations based on the original date and the current date.
The only way that I can see to do this is to populate a tm structure ( I think that's the one) and then use it vs what I get with one of the time functions. I would assume that I could also do difftime with the same data.
It seems cumbersome, but probably more reliable than other systems that I've seen. If there's a simpler way, I'd love to hear about it.