Oriel — AI & technology worth noticing, every day.

Jiff 1.0: A datetime library for Rust

Web page · https://burntsushi.net/jiff

First seen by Oriel on .

AI summary

This article announces Jiff 1.0, a Rust datetime library that makes time-zone handling central to simplify date, time, duration, parsing, formatting, and manipulation APIs.

  • Jiff 1.0 is intended as a stable ecosystem building block, with incompatible releases not planned unless significant API defects are found.
  • Its datetime model separates civil::Date, civil::Time, civil::DateTime, Timestamp, TimeZone, and ZonedDateTime, connecting human calendar values with instants.
  • Time-zone conversions expose daylight-saving folds and gaps, default to a compatible strategy, and support earlier, later, or unambiguous error-handling strategies.
  • Span combines calendar and physical units while SignedDuration represents signed nanoseconds; the article recommends Span unless it is too bulky or slow.
  • Jiff is already used in projects including uv, Cargo, Starship, fd, Nushell, mise, Jujutsu, and uutils/coreutils.

#rust #datetime #time zones #date arithmetic

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 369, latest observation ; +363 over observed period since
  • Lobsters: 141, latest observation ; +138 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 81, latest observation ; +81 over observed period since
  • Lobsters: 34, latest observation ; +33 over observed period since

Aliases

SourceExternal IDURL
Hacker News50511297https://burntsushi.net/jiff/ Read discussion
Hacker News50519744https://burntsushi.net/jiff/ Read discussion
Lobstersdxxvekhttps://burntsushi.net/jiff/ Read discussion