C
codejockey
I am writing an app where i have to parse a date/string (pretty much
in any format). The string can include timezones both in numeric or
abbreviated form. The output should be in a standard format like ISO
or in a numeric format which captures no of seconds from 1970 Jan 1st
(or preferrably 1900).
I am currently using strptime and running it over a number of formats
and trying this. But strptime does not seem to have good support to
parse timezones (especially timzones in abbreviated format).
I have tried boost, but did not have much luck in getting timezones
parsed.
I did look at ICU, but could not even get it to parse properly. (I
might not have done a thorough job here).
Can anybody tell me which is a good library for my needs.
in any format). The string can include timezones both in numeric or
abbreviated form. The output should be in a standard format like ISO
or in a numeric format which captures no of seconds from 1970 Jan 1st
(or preferrably 1900).
I am currently using strptime and running it over a number of formats
and trying this. But strptime does not seem to have good support to
parse timezones (especially timzones in abbreviated format).
I have tried boost, but did not have much luck in getting timezones
parsed.
I did look at ICU, but could not even get it to parse properly. (I
might not have done a thorough job here).
Can anybody tell me which is a good library for my needs.