According to ISO 8601, time can be specified in different formats.
My program does not know which exact ISO 8601 format will be specified.
In this case, how can I convert it to time_t?
strptime requires you to specify format (which I do not know before hand in my case).
Ultimate goal: is to compare 2 time_t timestamps.
Edit 0: Because my goal is to compare 2 time stamps, time_t to ISO 8601 conversion will also work.
If you are on a UNIX like machine, try getdate. The interface is funky but works pretty good.