I need to save the date in a flat file. Is there any simple method to get the number of days from a specific date (e.g., from 1 AD) using the standard library in C ++ 11? The only thing I know is:
- get std :: tm structure, set all time values ββto 0
- convert it to std :: time_t (I don't know a suitable method yet)
- split time_t to get one day resolution.
Can I make it easier?
Dejwi source
share