Skip to content

Conversation

@StratusFearMe21
Copy link

@StratusFearMe21 StratusFearMe21 commented Oct 20, 2025

This PR adds initial jiff support to these bindings. It's a newer date/time library inspired by JavaScript's Temporal API. jiff is unique in that it has a Span type that can accurately perform arithmetic with calendar units like days and moths. Jiff's span type also losslessly converts to and from DuckDB's interval type.

@StratusFearMe21 StratusFearMe21 marked this pull request as draft October 20, 2025 05:24
@StratusFearMe21 StratusFearMe21 marked this pull request as ready for review October 20, 2025 22:08
@StratusFearMe21
Copy link
Author

This PR also has some fixes for the implementation of chrono. For instance, the FromSql implementation for chrono::NaiveTime and chrono::NaiveDate used chrono::NaiveDateTime::parse_from_string(), which crashes if the underlying ValueRef is a string, since you need both a date and a time to construct a NaiveDateTime. I've made sure to add more unit tests for the bugs I did find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant