Jiff is a datetime library for Rust that encourages you to jump into the pit of success. Jiff automatically handles many common problems related to daylight saving time by putting time zone handling front and center into the API. Jiff has already seen widespread adoption in the Rust ecosystem. Jiff is pronounced like “gif” with a soft “g,” as in “gem.” This blog announces the Jiff 1.0 release by giving a tour of its API. Target audience: Rust programmers who need convenient datetime handling. Table of Contents The Jiff 1.0 Commitment Introduction Follow Along Terms The DateTime Onion Defining a time zone Durations When should I use Jiff? Parsing and Formatting FromStr and Display The “friendly” Duration Format strptime and strftime The jiff::fmt module Locale…
A datetime library for Rust
Advertisement