How to convert toml::date_time to std::chrono::time_point?
Gwill opened this issue · 2 comments
Gwill commented
How to convert toml::date_time to std::chrono::time_point?
marzer commented
There's no built-in way to do this; you'd need to do a bit of math. I'm not very familiar with std::chrono
so I can't think how to do this currently, but I'll have a look into it.
marzer commented
Looks like the snippets here are what you want: StackOverflow
Should be relatively easy to tweak it to use toml::date_time
as the source.