Use case for "large-dates" feature flag #306
Replies: 3 comments 12 replies
-
We need the feature to safely interact with Windows APIs: |
Beta Was this translation helpful? Give feedback.
-
We do geoprocessing and usually process data that is collected in recent centuries and now. But there are scenarios, e.g. in landscape modeling, where we look at historic dates way beyond -1k. These are quite inaccurate, but at least with We are currently switching from |
Beta Was this translation helpful? Give feedback.
-
Thanks for having this discussion before making breaking changes! Just like @poliorcetics, I'm targeting the Windows world, which internally stores time in an unsigned 64-bit integer that counts the number of 100-nanosecond intervals since January 1st, 1601. My To interoperate with other parts of the Rust ecosystem, I've just implemented converters from and to |
Beta Was this translation helpful? Give feedback.
-
This discussion is for collecting the various use cases of having dates outside of the range -9999-01-01 to +9999-12-31. In time 0.3, support for these values is placed behind the "large-dates" flag, which allows some optimizations for what I believe to be the most common use case.
As indicated in the crate's documentation, this flag may be removed in a future release if there is insufficient demand. Leave your use case below, and use the 👍 reaction if you share this use case. Please do not 👍 a use case that you do not actually need this feature for. Off-topic comments will likely be outright deleted.
Beta Was this translation helpful? Give feedback.
All reactions