Parse RFC3339/ISO 8601 timestamp in Boost

Viewed 3392

How do I parse a RFC3339 timestamp ("1985-04-12T23:20:50.52Z") (i.e. a subset of ISO8601) in C++03? I'm using Boost, but none of the Boost datetime libraries seem to include a function to do this.

The type of the actual time object doesn't matter, as long as I can easily compare it to 'now'. I only care about timestamps in the UTC timezone.

2 Answers
Related