title: How do I convert a string containing a 64 bit epoch time to human readable format?
body: <p>So I realized that the string I'm getting from a server that represents the date is a 64 bit representation of the time since the epoch. For example, one of the values I'm getting is: 1380994682285. I've tried doing an atoi on the string but obviously that doesn't work as I lose precision and the resultant value that I pass on to localtime() results in an incorrect date. This is on iOS so some phones are 32 bit and some are 64 bit, and presently, I see that it has time_t defined as a long. How do I convert this large epoch value to something I can ultimately get a human readable date from?</p>