Consider adding a DecimalSecond variant with automatic fraction digits #6008
Labels
C-datetime
Component: datetime, calendars, time zones
T-enhancement
Type: Nice-to-have but not required
Milestone
In #5979, I'm implementing auto time precision by calculating the number of fractional digits with integer operations on the nanosecond ahead of time. It would be more efficient if we could read the number of fractional digits when we actually need it and after the nanosecond has been converted to a FixedDecimal.
An easy way to do this would be to add a DecimalSecond variant for automatic fractional second digits. However, this would make DecimalSecond deviate from UTS 35.
It would also eliminate the need to carry the
fractional_second_digits_from_nanosecond
function.Please upvote this issue if you would like to see automatic fraction digits. This will help us make the case to add the proposed option.
The text was updated successfully, but these errors were encountered: