Why does icu_time::ZonedDateTime not implement serde::Serialize?
#7343
-
|
In developing an application, one of my requirements is to be able to store I figured I could simply serialize the containing struct with Note: I'd be happy to make a PR for such an implementation, but thought it best to ask here before doing it, because I've made wrong assumptions about unimplemented traits in this crate before :p |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hi, thanks for the question! Could you clarify your use-case? The datetime types in We have worked closely with the authors of temporal_rs which ships a much more fully featured ZonedDateTime, including functions like to_ixdtf_string for serialization. You might also consider libraries such as |
Beta Was this translation helpful? Give feedback.
Hi, thanks for the question! Could you clarify your use-case?
The datetime types in
icudo not implement many of the common helper traits, likeSerializeorOrd, because they are not designed for storage or interchange. They are designed for formatting input and calendrical calculations.We have worked closely with the authors of temporal_rs which ships a much more fully featured ZonedDateTime, including functions like to_ixdtf_string for serialization. You might also consider libraries such as
time,jiff, andchrono.