danielhrisca / asammdf

Fast Python reader and editor for ASAM MDF / MF4 (Measurement Data Format) files
GNU Lesser General Public License v3.0
648 stars 226 forks source link

header.start_time is missing fractional seconds #397

Closed johnml1135 closed 4 years ago

johnml1135 commented 4 years ago

Do the MDF files only have the start_date/time down to the second? When a file is converted from BLF to MDF in CANape, it appears to lop off the fractional seconds of the start time. Is that true? If the fractional seconds is there, it is being misunderstood by asammdf. (possibly could be treating ms as ns).

danielhrisca commented 4 years ago

Hello @johnml1135

I think you have a MDF file with version lower than 3.20

mdf = MDF(file)
print(mdf.version)

Before version 3.20 the start time resolution was 1s