arrow-julia icon indicating copy to clipboard operation
arrow-julia copied to clipboard

Serialize Month objects

Open jtrakk opened this issue 4 years ago • 0 comments

I want to serialize Month and Year etc. They do not have a unique representation in terms of seconds, so I try to serialize them directly.

using Dates, Arrow
ArrowTypes.arrowname(::Type{Dates.Month}) = :Dates_Month
ArrowTypes.JuliaType(::Val{:Dates_Month}) = Dates.Month
Arrow.toarrow(Month(1))
MethodError: Cannot `convert` an object of type Month to an object of type Second

jtrakk avatar Dec 06 '21 05:12 jtrakk