1

I have a time string object in C++, which is the human readable time since epoch since 1970 of the following form, "2014/04/28 09:17:49.114'556". I want to convert the string into a LONGLONG integer that represents micros since epoch. What may be the easiest way to do this?

ganesh reddy
  • 1,842
  • 7
  • 23
  • 38
  • You may want to have a look at this [question](http://stackoverflow.com/questions/4137748/c-converting-a-time-string-to-seconds-from-the-epoch). – Yuchen May 09 '14 at 21:28
  • Thanks that makes sense, this time zone is actually IST, or Indian standard time, any way to tackle that? – ganesh reddy May 09 '14 at 21:35
  • The title says milliseconds but the question says "micros" (and the example suggests microseconds). So which is it? – David Hammen May 09 '14 at 22:25

0 Answers0