Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: djnrempelI have a set of a couple million audio files and I need to figure out when each one started. The start time is embedded in the file name in two different ways, as in this example:
20140401-0916--01cf4d8b18336cd0
The first one is easy to read, it means the file started at 9:16 a.m. on 2014/04/01. Unfortunately this only tells me to the closest minute and I need the closest second.
The second format is a FILETIME format, which is a convention that uses a 16 character hexadecimal value to indicate the number of 100 nanosecond increments that have elapsed since Jan. 1, 1601.
The logic of converting a hexadecimal to a decimal is not that hard, the problem I run into is that the numbers are larger than it seems either a LONG or INT can hold, so I can't even be sure that my conversion script is giving me any kind of accurate result because the calculations on the last few digits may give accurate results.
If it is accurate but just rounded, that's probably fine as long as I still have a resolution of one second.
Typing this out has given me some ideas of things to test and try, so I will report back, but if anyone has any quick and easy answers/advice, I'm all ears.