I have a char *
with a date string I wish to parse. In this case a very simple format: 2010-10-28T16:23:31.428226
(common ISO format).
I know with Boost I can parse this, but at a horrible cost. I have to create a string-stream, possibly a string, and then copy data back and forth. Is there any way to parse the char *
without allocating any additional memory. Stack objects are fine, so is reusing a heap object.
Any easy way would also be great! ;)
Edit: I need the result in microseconds since the epoch.