NewsCrawler.org

Jiff 1.0: a datetime library for Rust

Jiff is a datetime library for Rust, pronounced like "gif" with a soft "g". It automatically handles many daylight saving time problems by putting time zone handling at the center of its API. The author announces the 1.0 release and plans to keep the 1.0 API stable indefinitely, unless a significant defect is found, because other libraries may include Jiff in their public APIs and incompatible releases (semver[1]) would cause problems for them.

Jiff is already used in production in uv, Cargo, Starship, fd, Nushell, mise, Jujutsu, uutils/coreutils, and as the basis for a Temporal implementation in AWS LLRT. The blog gives a tour of the API, and the list of breaking changes between Jiff 0.2 and 1.0 is in the CHANGELOG.

The core model joins a civil time[2] (the time on a clock), a Timestamp (a specific instant counted in nanoseconds since the Unix epoch) and a TimeZone into a ZonedDateTime. Time zone rules come from the IANA Time Zone Database[3]. In the examples, 17:30 on 1 November 2026 in America/New_York is the same instant as timestamp 1793572200.

Read the original burntsushi.netDiscussion

Discussion

Most commenters welcome the 1.0 release and say they already use Jiff or will update their dependencies. Some hope that sqlx will add support, one reports moving a project from chrono, which they say is soft-deprecated, and another suggests adding Jiff to the standard library. One commenter says they would rather have an AI agent write their own library.

Sources

Published: First seen: Читать по-русски

Open as a page