I’m trying to write a function that would give me an array of days that exists between two timestamps.
For example
getDays(int startTimestamp,int stopTimestamp);
the output would be
2011-11-05
2011-11-06
2011-11-07
Is there anyway of doing this in a clean way without having to do some heavy algo ?
I’m not familiar with C++ so I just want to make sure there is no function that could do this for me before I start writting a big function.
Cheers
Have a while loop
strftime documenation. If your units were time_t this is a specific example