Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the date library support modular - Add support for Jiff #120

Open
Permik opened this issue Jan 7, 2025 · 1 comment
Open

Make the date library support modular - Add support for Jiff #120

Permik opened this issue Jan 7, 2025 · 1 comment

Comments

@Permik
Copy link

Permik commented Jan 7, 2025

Hello

This looks like an awesome library that I'll definitely be using in the future!
For now it seems that the date parsing and data types are from Chrono, but for my future projects I'll be definitely moving to use the Jiff library by BurntSushi.

Is there any plans to make the date library/data types configurable depending on what time library the user prefers?
(I'll try to contribute the feature when/if I get to it, unless someone nerdsnipes the feature first.)

Also, if you want to split this issue to two different issues, please go ahead!

Cheers!

@hoodie
Copy link
Owner

hoodie commented Jan 7, 2025

Hiho, thanks for the interest. I've heard of jiff before but haven't looked at it closely. I haven't looked at jiff much before but it seems to have a nice api to construct dates. icalendar has it's own CalendarDateTime wrapper but uses chrono internally, but maybe it might be possible to provide From implementations for jiff types. Maybe that could even make some of the examples nicer, which are currently using slightly deprecated chrono APIs.

If you want to give it a try be my guest.

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

No branches or pull requests

2 participants