Custom converters
Created by: huming2207
Hi,
I'm writing a program which needs to convert ISO8601 time string (e.g. 2018-02-22T13:21:00Z
as general or 20180222T132100Z
for some special cases) to time_t
or struct std::tm
.
Currently I'm using strptime()
function to parse the time string to those two time data types. I'm wondering if I can use .as<time_t>()
or .as<struct std::tm>()
?
Regards, Jackson