JuliaIO / MAT.jl

Julia module for reading MATLAB files
MIT License
278 stars 71 forks source link

Is there a way to write DateTime values to a MAT file please? #82

Open RobBlackwell opened 6 years ago

RobBlackwell commented 6 years ago
using MAT
matwrite("foo.mat", Dict("now" => now()))

results in

ERROR: This is the write function for CompositeKind, but the input doesn't fit
Stacktrace:
 [1] m_write at /home/reb/.julia/v0.6/MAT/src/MAT_HDF5.jl:514 [inlined]
 [2] write(::MAT.MAT_HDF5.MatlabHDF5File, ::String, ::DateTime) at /home/reb/.julia/v0.6/MAT/src/MAT_HDF5.jl:530
 [3] matwrite(::String, ::Dict{String,DateTime}) at /home/reb/.julia/v0.6/MAT/src/MAT.jl:156