Skip to content

Implement support for jiff - #293

Open
NickKolpinski wants to merge 12 commits into
ClickHouse:mainfrom
NickKolpinski:feat/jiff-support
Open

Implement support for jiff#293
NickKolpinski wants to merge 12 commits into
ClickHouse:mainfrom
NickKolpinski:feat/jiff-support

Conversation

@NickKolpinski

Copy link
Copy Markdown

Summary

Implement support for jiff.

It's a somewhat new datetime library, inspired by JavaScript's Temporal. Unlike chrono and time, it supports TZif files out of the box, which is why I prefer it to the other two.

The PR is heavily based on the chrono implementation.

Checklist

Delete items not relevant to your PR:

  • Unit and integration tests covering the common scenarios were added
  • A human-readable description of the changes was provided so that we can include it in CHANGELOG later
  • For significant changes, documentation in README and https://github.com/ClickHouse/clickhouse-docs was updated with further explanations or tutorials

@CLAassistant

CLAassistant commented Sep 21, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

serprex
serprex previously approved these changes Sep 22, 2025
@NickKolpinski

Copy link
Copy Markdown
Author

I just realized that BurntSushi wanted to release jiff 1.0 in the near future:

That is, I'd still like to get a jiff 1.0 release out this summer 2025 (in about 6 months) and then commit to it indefinitely.

While it's almost October, that still means that the release might be right around the corner. Let's put this PR on hold for now.

@NickKolpinski
NickKolpinski marked this pull request as draft September 27, 2025 13:47
@abonander

Copy link
Copy Markdown
Contributor

Updated comment on supporting Jiff here: #383 (comment)

@NickKolpinski

Copy link
Copy Markdown
Author

Integration tests are yet to be ported, but I pushed the interface, so you can take a look.

@BurntSushi, I believe you also wanted to be pinged.

Unsure why rust-analyzer's "implement missing members" didn't
care about `use core::fmt` at the top of the files, but oh well.
This should be less of a pain to use when type inference can't be relied upon.
@NickKolpinski
NickKolpinski marked this pull request as ready for review June 2, 2026 21:10
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.

5 participants