jiff-tzdb
The entire Time Zone Database embedded into your binary.
0.1.8
37M downloads/mo
#1474 most downloaded on crates.io
BurntSushi/jiff
What this package is like to depend on
Last release 1 months ago
09 Jul 2026
Release timing varies
gaps range from 2 weeks to 9 months
Nearly every release is documented
notes for 9 of 10 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
10 releases · first in 2024
4 releases in the last 12 months
see the full history below
Release timeline
10 releases · Jul 2024 to Jul 2026Releases
latest 10-
0.1.809 Jul 2026Release notes
Open source →This releases fixes a build error in Jiff's
alloc-only configuration. This regression was introduced injiff 0.1.6.Bug fixes:
- #108:
Use
core::time::Durationeverywhere instead ofstd::time::Duration.
- #108:
Use
-
0.1.702 Jul 2026Release notes
Open source →This release relaxes Jiff's dependency on
windows-systo include multiple semver incompatible releases. The purpose of this relaxation is to enable Jiff to work with different versions ofwindows-sysin the hopes that this reduces the likelihood that multiple copies ofwindows-sysare included in your dependency tree.Dependencies:
- #106:
Relax
windows-sysdependency constraint to>=0.52.0, <=0.59.*.
- #106:
Relax
-
0.1.603 Mar 2026Release notes
Open source →This release includes a new top-level type,
SignedDuration, that provides a near exact replica ofstd::time::Duration, but signed. It is meant to provide alternative APIs for working with durations at a lower level than whatSpanprovides, and to facilitate better integration with the standard library.A
SignedDurationhas also been integrated with all of Jiff's datetime types. For example, previously,Zoned::checked_addonly accepted a concretejiff::Span. But now it accepts ajiff::Span,jiff::SignedDurationor even astd::time::Duration. Moreover, all of theuntilandsinceAPIs on datetime types have been ported and copied to returnSignedDurationunder theduration_untilandduration_sincenames.This marks an initial integration phase with
SignedDuration. It is planned to integrate it more with the datetime types. Currently, there are integrations onTimestampandSpan, but more will be added in the future.Overall, folks should still use
Span. That is the intended default duration type in Jiff and will continue to be. Users of Jiff may findSignedDurationuseful in contexts where speed is important or when one needs to integrate with the standard library.This release also includes a few related deprecations as the APIs involving
std::time::Durationare phased out in favor ofSignedDuration.Deprecations:
Timestamp::as_duration: replaced withas_jiff_duration, which will be renamed toas_durationinjiff 0.2.Timestamp::from_duration: replaced withfrom_jiff_duration, which will be renamed tofrom_durationinjiff 0.2.Timestamp::from_signed_duration: replaced withfrom_jiff_duration.Span::to_duration: replaced withto_jiff_duration, which will be renamed toto_durationinjiff 0.2.
Basically, all of the above APIs either accept or return a
std::time::Duration. To avoid breaking changes at this point, new methods forSignedDurationwere added. For example,Timestamp::as_jiff_duration. Injiff 0.2, the above deprecated methods will be removed and replaced with equivalent methods that accept or return aSignedDurationinstead. Callers can then convert between aSignedDurationand astd::time::Durationusing appropriateTryFromtrait implementations.Enhancements:
- #21:
Add new top-level
SignedDurationtype. - #90:
Improve error message when using
Spanwith >=day units with aTimestamp.
Performance:
-
0.1.511 Dec 2025Release notes
Open source →This release includes some improvements and bug fixes, particularly for Jiff's
strtimeAPIs.Enhancements:
- #63:
Add link to original Chrono maintainer's commentary in
DESIGN.md. - #75:
Add support for
%Vfor formatting and parsing IANA time zone identifiers. - #79:
Add
devcontainer.jsonto support GitHub Codespaces. - #85:
Set correct ranges for internal tracking in return value of
days_in_month.
Bug fixes:
- #63:
Add link to original Chrono maintainer's commentary in
-
0.1.423 Mar 2025Release notes
Open source →This release includes a small improvement for
strptimethat permits%Y%m%dto parse20240730correctly.Enhancements:
- #62:
Tweak
strptimeso that things like%Yaren't unceremoniously greedy.
- #62:
Tweak
-
0.1.306 Mar 2025Release notes
Open source →This release features support for
wasm32-unknown-unknown. That is, when Jiff's newjscrate feature is enabled, Jiff will automatically use JavaScript APIs to determine the current time and time zone.Enhancements:
- #58:
Add WASM support and a new
PLATFORM.mdguide.
- #58:
Add WASM support and a new
-
0.1.216 Jan 2025Release notes
Open source →This release features a few new APIs that a need for arose while experimenting with actually using Jiff in real projects. Namely, the
jiff::fmt::strtimemodule now has%fand%.fdirectives for parsing and formatting fractional seconds. And bothjiff::fmt::rfc2822andjiff::fmt::strtimenow have support for skipping weekday checks during parsing. (Previously, Jiff required that an English weekday be consistent with the date parsed, and there was no way to opt out. While this is still the default behavior, callers can disable this check.)Enhancements:
- #52:
Improve documentation for
Spangetter methods. - #53: Add support for skipping weekday checking when parsing datetimes.
- #55:
Add support for fractional seconds in
jiff::fmt::strtime.
Bug fixes:
- #52:
Improve documentation for
-
0.1.107 Sep 2024Release notes
Open source →This is a new semver compatible release. The principle addition are APIs for converting between a
jiff::Spanand astd::time::Duration. Specifically, there are nowTryFrom<Span> for DurationandTryFrom<Duration> for Spantrait implementations. There is also aSpan::to_duration, which requires a relative date, for converting spans with non-uniform units (like months) to aDuration.Enhancements:
Bug fixes:
-
0.1.022 Jul 2024 -
0.0.109 Jul 2024Nothing published for this version