I have a string which has the time in UTC as ddhhmm and I need to convert it to YYYY-MM-dd hh:mm:ss format.
Example Input: 220805
Output: 2020-06-22 08:05:00
As I know that <chrono>
library can handle only time and not dates. I am not getting how to convert between local time and UTC when I do the conversion. Is there any C++ specific library which does this?
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire