Support Date encoding with sub-millisecond precision #494
importRyan
started this conversation in
General
Replies: 1 comment
|
Hi @importRyan, are you sure that SQLite supports sub-millisecond precision in dates? As far as I can tell it's just milliseconds. Since this is not directly an issue with the library, and more of a feature request / discussion, I am going to convert it to a discussion. Let's continue the conversation over there and then we can decide if there is something new that needs to be added to the library. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
Currently, Date is recorded a String with millisecond precision (for most modern devices).
For applications expecting greater precision (e.g., Dates compared to nanosecond precision in existing logic), custom
@Columnand#bindwork, but require dashes of ceremony everywhere.Avoiding that ceremony is possible if these formatters could output by default (or as an option) with greater precision.
Checklist
mainbranch of this package.Expected behavior
Record Date with same precision as default JSONEncoder/Decoder behavior.
Actual behavior
Rounded millisecond precision
SQLiteData version information
1.6.6
All reactions