frejanordsiek / hdf5storage

Python package to read and write a wide range of Python types to/from HDF5 formatted files. Can read/write data to the HDF5 based Matlab v7.3 MAT files.
BSD 2-Clause "Simplified" License
83 stars 24 forks source link

datetime objects export #112

Open danielhrisca opened 3 years ago

danielhrisca commented 3 years ago

Hello Freja,

it seems that there are some dedicated array types in Matlab for datetime representation. Do you think hdf5storage could support this as well for writing .mat files?

frejanordsiek commented 3 years ago

Some years ago, I looked at several Matlab types including I think dates and times (but perhaps not) and they were using Matlab's class system including its marshalling back and forth to HDF5. I was unable to fully reverse engineer the marshalling at the time. Would need to check again, though, but I lack access to Matlab at present. I would need to have some saved to a MAT file in order to try to reverse engineer.

danielhrisca commented 3 years ago

I've got a file that contains the following datetime array

MicrosoftTeams-image (1)

data.zip

frejanordsiek commented 8 months ago

Thank you for this. I took a quick look and this would likely be some serious reverse engineering sadly.