I have a customer that supplied me with a text file that has some data and dates stored, apparently, as milliseconds since 01/01/1970 12:00a. I need to display the date/time in their application. I believe I can use the localtime routine but that requires the data passed to it to be in time_t format. I currently have it as a string.
One sample number stored in a string 1192034967000. How do I convert this to time_t so I can get the date/time conversion or is there a better way?
Thanks
One sample number stored in a string 1192034967000. How do I convert this to time_t so I can get the date/time conversion or is there a better way?
Thanks
Comment