Home:ALL Converter>How to convert a datetime string with milliseconds to UNIX timestamp

How to convert a datetime string with milliseconds to UNIX timestamp

Ask Time:2018-04-08T06:59:58         Author:Iliketoproveit

Json Formatter

I have the following string

2013-04-12 16:00:15.041

What is the C++ way to convert this string into a 64bit UNIX timestamp? Most question on here deal with only having the timestamp until seconds but in my case I also need to include the milliseconds.

Author:Iliketoproveit,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/49712807/how-to-convert-a-datetime-string-with-milliseconds-to-unix-timestamp
yy