-
October 9th, 2013, 03:27 PM
#1
Best way to handle MMM DD HH:MM:SS.MMM Timestamps?
Hi
I have a file where each line contains the following timestamp format:
MMM DD HH:MM:SS.MMM
I want to read this in and normalize the time and pass it along in seconds.
I am using the following at the moment. However it doesn't support milliseconds.
CTime time( m_year, month, day, hour, min, sec)
I read in first timestamp, save it in "firstTimeStamp" and then pass the rest of the line for processing with timestamp 0.
For any lines after that, I read in the timestamp, subtract "firstTimeStamp" using CTimeSpan and pass long.
Ideas on how I can include the milliseconds?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|