Debian Codegraph @

debian/rust-vendor/jiff/CHANGELOG.md

raw
1 # CHANGELOG
2
3 0.2.37 (2026-09-12)
4 ===================
5 This is a redux release of `0.2.36` that fixes a compilation bug.
6
7 Bug fixes:
8
9 * [#647](https://github.com/BurntSushi/jiff/issues/647):
10 Fixes a compilation bug due to incorrect include paths.
11
12
13 0.2.36 (2026-09-12)
14 ===================
15 This release has a couple bug fixes and adds opt-in integration with the
16 `arbitrary` crate.
17
18 Enhancements:
19
20 * [#631](https://github.com/BurntSushi/jiff/issues/631):
21 Add optional `Arbitrary` trait implementations from the `arbitrary` crate.
22
23 Bug fixes:
24
25 * [#617](https://github.com/BurntSushi/jiff/pull/617):
26 Fixes a bug in `jiff_core::tz::Offset` checked subtraction routine.
27 * [#627](https://github.com/BurntSushi/jiff/issues/627):
28 Use `serialize_some` for optional Serde helpers in `jiff::fmt::serde`.
29
30
31 0.2.35 (2026-07-25)
32 ===================
33 This release fixes a bug in duration parsing where, e.g., `-PT0.5S` would be
34 parsed as if the `-` sign didn't exist. This bug also affects friendly
35 durations such as `-0.5s`.
36
37 Bug fixes:
38
39 * [#613](https://github.com/BurntSushi/jiff/issues/613):
40 Fixes a bug where the sign in a duration could be ignored while parsing.
41
42
43 0.2.34 (2026-07-19)
44 ===================
45 This release contains a few small enhancements. Namely, some error messages
46 for parsing datetime values have been improved by removing some redundant
47 messaging. Additionally, the `strftime` APIs on datetime values can no longer
48 panic. Instead, they'll silently pass through invalid formatting directives.
49
50 Enhancements:
51
52 * [#519](https://github.com/BurntSushi/jiff/issues/519):
53 Improve some parsing error messages by removing redundancy.
54 * [#585](https://github.com/BurntSushi/jiff/issues/585):
55 Change `Timestamp::strftime` (and similar methods) so that they will never
56 panic.
57
58
59 0.2.33 (2026-07-18)
60 ===================
61 This release permits the use of a global time zone database in `alloc`-only
62 environments. It also contains a massive internal refactor that introduces a
63 new `jiff-core` crate for better code sharing.
64
65 Enhancements:
66
67 * [#285](https://github.com/BurntSushi/jiff/issues/285):
68 Decouple naming of time zones from their TZif data.
69 * [#373](https://github.com/BurntSushi/jiff/issues/373):
70 Add a new `jiff-core` crate for better code sharing.
71 * [#533](https://github.com/BurntSushi/jiff/issues/533):
72 A bundled `TimeZoneDatabase` is now available when only `alloc` is enabled.
73
74
75 0.2.32 (2026-07-08)
76 ===================
77 This release updates Jiff's bundled copy of the [IANA Time Zone Database]
78 to `2026c`. See the [`2026c` release announcement] for more details.
79
80 [`2026c` release announcement]: https://lists.iana.org//hyperkitty/list/[email protected]/thread/NVHSX2PAQIT44U5FCCEVNJJYXQMMTJSA/
81
82
83 0.2.31 (2026-06-29)
84 ===================
85 This release fixes a minor bug in tests that prevents the crate from running
86 through standard build processes in Linux distributions downstream.
87
88 * [#594](https://github.com/BurntSushi/jiff/pull/591):
89 Fix imports in recently added tests.
90
91
92 0.2.30 (2026-06-29)
93 ===================
94 This release fixes a safety soundness bug in Jiff's lower level printing
95 APIs. There is also a nice performance improvement to `civil::Date::weekday`,
96 which also improves downstread routines like `civil::Date::nth_weekday` and
97 datetime<-->timestamp conversions in some cases.
98
99 Enhancements:
100
101 * [#591](https://github.com/BurntSushi/jiff/pull/591):
102 Improve the performance of weekday calculations from Gregorian dates by 30-50%.
103
104 Bug fixes:
105
106 * [#592](https://github.com/BurntSushi/jiff/issues/592):
107 Fix safety soundness bug when using a non-empty `String` destination buffer
108 with lower level printing APIs inside of `jiff::fmt`.
109
110
111 0.2.29 (2026-06-20)
112 ===================
113 This release adds support for [`defmt`], which is a highly efficient logging
114 framework that targets resource-constrained devices, like microcontrollers.
115
116 Enhancements:
117
118 * [#505](https://github.com/BurntSushi/jiff/issues/505):
119 Add support for the `defmt` crate by implementing `defmt::Format` on the
120 principle public types in Jiff.
121 * [#584](https://github.com/BurntSushi/jiff/pull/584):
122 Add `Zoned::UNIX_EPOCH` as a constant.
123 * [#587](https://github.com/BurntSushi/jiff/pull/587):
124 Change the `Debug` output for `civil::ISOWeekDate` to match the `Debug` output
125 style of other primitive datetime types.
126
127 Bug fixes:
128
129 * [#525](https://github.com/BurntSushi/jiff/issues/525):
130 Fix a bug that prevented time zone lookups when using an on-disk time zone
131 database on Windows.
132 * [#539](https://github.com/BurntSushi/jiff/issues/539):
133 Fix a bug where rendering a datetime in an error message would omit a `T`
134 separator.
135
136
137 0.2.28 (2026-05-28)
138 ===================
139 This is a small release with a fix for test failures on 32-bit targets in
140 `no-alloc` environments.
141
142 Bug fixes:
143
144 * [#573](https://github.com/BurntSushi/jiff/issues/573):
145 Fix test failure on 32-bit targets in `no-alloc` environments.
146
147
148 0.2.27 (2026-05-26)
149 ===================
150 This is a small release with a bug fix for build errors on Windows for very old
151 versions of Rust.
152
153 Bug fixes:
154
155 * [#566](https://github.com/BurntSushi/jiff/issues/566):
156 Fix build error on Windows for very old versions of Rust (e.g., 1.71).
157
158
159 0.2.26 (2026-05-25)
160 ===================
161 This release has a couple enhancements.
162
163 Firstly, Jiff now uses `windows-link` for calling FFI routines on Windows
164 instead of `windows-sys`. Using `windows-link` means less churn and fewer
165 duplicates in the dependency graph.
166
167 Secondly, a new `jiff-sqlx 0.2.0` release has been put out to support
168 `sqlx 0.9.0`.
169
170 Enhancements:
171
172 * [#538](https://github.com/BurntSushi/jiff/pull/538):
173 Replace use of `windows-sys` with `windows-link` and inline bindings.
174 * [#561](https://github.com/BurntSushi/jiff/pull/561):
175 Update `jiff-sqlx` to use `sqlx 0.9.0` and release `jiff-sqlx 0.2.0`.
176
177 Bug fixes:
178
179 * [#548](https://github.com/BurntSushi/jiff/pull/548):
180 Absolutetize incorrect relative size terms in the documentation of `RoundMode`.
181
182
183 0.2.25 (2026-05-24)
184 ===================
185 This release updates Jiff's bundled copy of the [IANA Time Zone Database]
186 to `2026b`. See the [`2026b` release announcement] for more details.
187
188 [`2026b` release announcement]: https://lists.iana.org//hyperkitty/list/[email protected]/thread/VX2Z3CBO6KHTYZNBBKFFWM7ZCI6TVCXP/
189
190
191 0.2.24 (2026-04-23)
192 ===================
193 This release primarily adds a new `memory_usage` routine for reporting
194 heap allocation sizes for the `TimeZone` and `Zoned` types. This
195 release also acknowledges and updates the timeline expectations for a
196 Jiff 1.0 release in `README.md`.
197
198 Enhancements:
199
200 * [#520](https://github.com/BurntSushi/jiff/issues/520):
201 Add `memory_usage` to the `TimeZone` and `Zoned` types.
202 * [#535](https://github.com/BurntSushi/jiff/pull/535):
203 Improve comment in `Span::checked_add` example.
204
205 Bug fixes:
206
207 * [#541](https://github.com/BurntSushi/jiff/pull/541):
208 Update Jiff 1.0 timeline.
209
210
211 0.2.23 (2026-03-03)
212 ===================
213 This release updates Jiff's bundled copy of the [IANA Time Zone Database]
214 to `2026a`. See the [`2026a` release announcement] for more details.
215
216 [`2026a` release announcement]: https://lists.iana.org/hyperkitty/list/[email protected]/thread/ASPLBE3A4BAEXIOQ3KZ6EJSJWBU6L53G/
217
218 0.2.22 (2026-02-28)
219 ===================
220 This release includes a bug fix where fallible conversions from signed
221 durations to unsigned durations could panic in some cases.
222
223 Bug fixes:
224
225 * [#526](https://github.com/BurntSushi/jiff/issues/526):
226 Fix a panicking bug that occurs for
227 `std::time::Duration::try_from(SignedDuration::new(0, -1))`.
228
229
230 0.2.21 (2026-02-22)
231 ===================
232 This release contains a performance improvement and a bug fix for
233 `civil::Date::new` where it could panic on some inputs.
234
235 Bug fixes:
236
237 * [#523](https://github.com/BurntSushi/jiff/issues/523):
238 Fix a bug where `Date::new` could panic. This was a regression introduced in
239 `jiff 0.2.20`.
240
241 Performance:
242
243 * [#518](https://github.com/BurntSushi/jiff/pull/518):
244 Improve `Timestamp` to `civil::DateTime` conversion performance by ~15%.
245
246
247 0.2.20 (2026-02-11)
248 ===================
249 This release contains a major internal refactor that moves off of using ranged
250 integers internally. There are also some small bug fixes and added support for
251 finding the system time zone on emscripten targets.
252
253 Enhancements:
254
255 * [#11](https://github.com/BurntSushi/jiff/issues/11):
256 Stop using ranged integers internally.
257 * [#490](https://github.com/BurntSushi/jiff/issues/490):
258 Add support for retrieving the system time zone on emscripten targets.
259 * [#500](https://github.com/BurntSushi/jiff/issues/500):
260 Update comparison with the `time` crate in the Jiff documentation.
261 * [#502](https://github.com/BurntSushi/jiff/issues/502):
262 Enable some non-default features for the Rust Playground deployment.
263
264 Bug fixes:
265
266 * [#485](https://github.com/BurntSushi/jiff/issues/485):
267 Fix bug with padding for negative integers in `strftime`.
268 * [#486](https://github.com/BurntSushi/jiff/issues/486):
269 Make `%^c` result in uppercase strings where appropriate.
270
271
272 0.2.19 (2026-02-05)
273 ===================
274 This is a small release with a performance optimization (with respect to doing
275 heavily contended arithmetic on `Zoned` values) and a bug fix for a panic
276 that can occur when using `%2s` in `strftime`.
277
278 Enhancements:
279
280 * [#491](https://github.com/BurntSushi/jiff/issues/491):
281 Avoid cloning `TimeZone` for consuming operations on `Zoned`.
282
283 Bug fixes:
284
285 * [#497](https://github.com/BurntSushi/jiff/issues/497):
286 Fix a panic in `timestamp.strftime("%2s")`.
287
288
289 0.2.18 (2026-01-05)
290 ===================
291 This release ships a sizeable refactor to the RFC 2822, RFC 9110, RC
292 3339, RFC 9557, ISO 8601 and friendly format printers. Specifically,
293 they are now all monomorphic internally (instead of being generic over
294 `jiff::fmt::Write`) and write to uninitialized buffers. This improves
295 runtime performance (sometimes dramatically so), and to a more modest
296 degree, decreases binary size and improves compile times.
297
298 This release also includes a bug fix where `DateTime::MIN.to_zoned(..)`
299 could panic.
300
301 Enhancements:
302
303 * [#460](https://github.com/BurntSushi/jiff/pull/460):
304 Improve runtime performance and binary size of RFC 2822 printer.
305 * [#461](https://github.com/BurntSushi/jiff/pull/461):
306 Tweak behavior of printing min/max offsets in RFC 2822 and Temporal printers.
307 * [#462](https://github.com/BurntSushi/jiff/pull/462):
308 Export fallible constructors for `jiff::SignedDuration`.
309 * [#465](https://github.com/BurntSushi/jiff/pull/465):
310 Improve runtime performance and binary size of the "friendly" duration printer.
311 * [#468](https://github.com/BurntSushi/jiff/pull/468):
312 Improve runtime performance and binary size of the Temporal ISO 8601 duration
313 printer.
314 * [#470](https://github.com/BurntSushi/jiff/pull/470):
315 Improve runtime performance and binary size of the Temporal ISO 8601 datetime
316 printer.
317 * [#474](https://github.com/BurntSushi/jiff/pull/474):
318 Improve runtime performance and binary size of Jiff's `strftime`
319 implementation.
320 * [#477](https://github.com/BurntSushi/jiff/pull/477):
321 Fix a bug where time zone lookups for `civil::DateTime::MIN` could panic.
322
323
324 0.2.17 (2025-12-24)
325 ===================
326 This release contains binary size improvements to Jiff, more succinct error
327 messages and some new minor APIs.
328
329 While Jiff 1.0 is overdue, I've been doing a lot of experimenting with
330 improving Jiff's binary size and compile times. In particular, I want to spend
331 time doing this before Jiff 1.0 so that we don't box ourselves into a corner.
332 (For example, some binary size improvements may require minor API breaking
333 changes.)
334
335 In this release, Jiff has switched to structured error handling internally
336 in an effort to provide error predicates and also hopefully improve binary
337 sizes and compile times. Overall this didn't have as big of an impact on
338 binary sizes or compile times as I was hoping. I did take this opportunity to
339 make Jiff's error messages a bit more succinct. In many cases, this involved
340 de-duplicating some aspects of error messages and omitting user provided input
341 in the messages. If you feel like there is a significant decrease in error
342 message quality that isn't easily amended by callers providing additional
343 context themselves, please open an issue.
344
345 This release also updates Jiff's bundled copy of the [IANA Time Zone Database]
346 to `2025c`. See the [`2025c` release announcement] for more details.
347
348 Enhancements:
349
350 * [#412](https://github.com/BurntSushi/jiff/issues/412):
351 Add `Display`, `FromStr`, `Serialize` and `Deserialize` trait implementations
352 for `jiff::civil::ISOWeekDate`. These all use the ISO 8601 week date format.
353 * [#418](https://github.com/BurntSushi/jiff/issues/418):
354 Add some basic predicates to `jiff::Error` for basic error introspection.
355 * [#453](https://github.com/BurntSushi/jiff/pull/453),
356 [#454](https://github.com/BurntSushi/jiff/pull/454):
357 Switch to structured error handling internally.
358 * [#456](https://github.com/BurntSushi/jiff/pull/456),
359 [#457](https://github.com/BurntSushi/jiff/pull/457),
360 [#458](https://github.com/BurntSushi/jiff/pull/458):
361 Various improvements to binary size.
362
363 [`2025c` release announcement]: https://lists.iana.org/hyperkitty/list/[email protected]/thread/TAGXKYLMAQRZRFTERQ33CEKOW7KRJVAK/
364
365
366 0.2.16 (2025-11-07)
367 ===================
368 This release contains a number of enhancements and bug fixes that have accrued
369 over the last few months. Most are small polishes. A couple of the bug fixes
370 apply to panics that could occur when parsing invalid `TZ` strings or invalid
371 `strptime` format strings.
372
373 Also, parsing into a `Span` should now be much faster (for both the ISO 8601
374 and "friendly" duration formats).
375
376 Enhancements:
377
378 * [#298](https://github.com/BurntSushi/jiff/issues/298):
379 Add Serde helpers for (de)serializing `std::time::Duration` values.
380 * [#396](https://github.com/BurntSushi/jiff/issues/396):
381 Add `Sub` and `Add` trait implementations for `Zoned` (in addition to the
382 already existing trait implementations for `&Zoned`).
383 * [#397](https://github.com/BurntSushi/jiff/pull/397):
384 Add `BrokenDownTime::set_meridiem` and ensure it overrides the hour when
385 formatting.
386 * [#409](https://github.com/BurntSushi/jiff/pull/409):
387 Switch dependency on `serde` to `serde_core`. This should help speed up
388 compilation times in some cases.
389 * [#430](https://github.com/BurntSushi/jiff/pull/430):
390 Add new `Zoned::series` API, making it consistent with the same API on other
391 datetime types.
392 * [#432](https://github.com/BurntSushi/jiff/pull/432):
393 When `lenient` mode is enabled for `strftime`, Jiff will no longer error when
394 the formatting string contains invalid UTF-8.
395 * [#432](https://github.com/BurntSushi/jiff/pull/432):
396 Formatting of `%y` and `%g` no longer fails based on the specific year value.
397 * [#432](https://github.com/BurntSushi/jiff/pull/432):
398 Parsing of `%s` is now a bit more consistent with other fields. Moreover,
399 `BrokenDownTime::{to_timestamp,to_zoned}` will now prefer timestamps parsed
400 with `%s` over any other fields that have been parsed.
401 * [#433](https://github.com/BurntSushi/jiff/pull/433):
402 Allow parsing just a `%s` into a `Zoned` via the `Etc/Unknown` time zone.
403
404 Bug fixes:
405
406 * [#386](https://github.com/BurntSushi/jiff/issues/386):
407 Fix a bug where `2087-12-31T23:00:00Z` in the `Africa/Casablanca` time zone
408 could not be round-tripped (because its offset was calculated incorrectly as
409 a result of not handling "permanent DST" POSIX time zones).
410 * [#407](https://github.com/BurntSushi/jiff/issues/407):
411 Fix a panic that occurred when parsing an empty string as a POSIX time zone.
412 * [#410](https://github.com/BurntSushi/jiff/issues/410):
413 Fix a panic that could occur when parsing `%:` via `strptime` APIs.
414 * [#414](https://github.com/BurntSushi/jiff/pull/414):
415 Update some parts of the documentation to indicate that `TimeZone::unknown()`
416 is a fallback for `TimeZone::system()` (instead of the `jiff 0.1` behavior of
417 using `TimeZone::UTC`).
418 * [#423](https://github.com/BurntSushi/jiff/issues/423):
419 Fix a panicking bug when reading malformed TZif data.
420 * [#426](https://github.com/BurntSushi/jiff/issues/426):
421 Fix a panicking bug when parsing century (`%C`) via `strptime`.
422 * [#445](https://github.com/BurntSushi/jiff/pull/445):
423 Fixed bugs with parsing durations like `-9223372036854775808s`
424 and `-PT9223372036854775808S`.
425
426 Performance:
427
428 * [#445](https://github.com/BurntSushi/jiff/pull/445):
429 Parsing into `Span` or `SignedDuration` is now a fair bit faster in some cases.
430
431
432 0.2.15 (2025-06-13)
433 ===================
434 This release fixes a bug where error values were being constructed during
435 parsing even in the success case. This was a regression introduced in `0.2.14`
436 as a result of trying to improve compilation times. Thankfully, fixing this
437 regression doesn't seem to meaningfully impact the amount of IR generated by
438 compiling Jiff.
439
440 Bug fixes:
441
442 * [#385](https://github.com/BurntSushi/jiff/pull/385):
443 Fixes a performance regression for parsing.
444
445
446 0.2.14 (2025-05-20)
447 ===================
448 This release includes a smattering of bug fixes, and hopefully a small
449 improvement to the time it takes to compile Jiff. Also, in this release, when
450 `TZ` is set to a non-empty but invalid value, Jiff will always fall back to
451 `Etc/Unknown` when using `TimeZone::system()`. This differs from previous
452 behavior where Jiff would, in this case, attempt to read the system's default
453 time zone. This change brings Jiff into consistency with existing Unix tooling
454 like `date`, and is also arguably a better failure mode. That is, when `TZ` is
455 set but invalid, we shouldn't silently fall back to the default system time
456 zone, but instead do something that indicates something has potentially gone
457 wrong.
458
459 Enhancements:
460
461 * [#364](https://github.com/BurntSushi/jiff/issues/364):
462 Jiff now falls back to `Etc/Unknown` for invalid `TZ` values.
463 * [#379](https://github.com/BurntSushi/jiff/pull/379):
464 Improve compilation times.
465
466 Bug fixes:
467
468 * [#365](https://github.com/BurntSushi/jiff/issues/365):
469 Fixes a compile error in Jiff when only the `tzdb-concatenated` feature was
470 enabled.
471 * [#366](https://github.com/BurntSushi/jiff/issues/366):
472 Fixes slow initial `Zoned::now()` in environments where `/usr/share/zoneinfo`
473 is on a very slow file system (like CI environments).
474 * [#376](https://github.com/BurntSushi/jiff/issues/376):
475 Avoids searching for a tzdb at `/usr/share/zoneinfo` on Windows.
476
477
478 0.2.13 (2025-05-05)
479 ===================
480 This release fixes a bug in a corner case where `TimeZone::following` could
481 sometimes omit the last time zone transition. This could only happen in time
482 zones that once had daylight saving time, but ended it. This did not have an
483 impact on other Jiff APIs that handle daylight saving time.
484
485 Bug fixes:
486
487 * [#362](https://github.com/BurntSushi/jiff/issues/362):
488 Fix a bug where `TimeZone::following` could omit the last historical time zone
489 transition.
490
491
492 0.2.12 (2025-05-03)
493 ===================
494 This release fixes a couple bugs in Jiff's parser. In particular, a regression
495 was introduced in `jiff 0.2.11` where its RFC 2822 parser could panic on some
496 inputs. Previous releases of Jiff are unaffected.
497
498 Bug fixes:
499
500 * [#357](https://github.com/BurntSushi/jiff/issues/357):
501 Fix a bug where parsing `1970-06-01T00-00:45:00[Africa/Monrovia]` succeeded
502 but it should fail.
503 * [#359](https://github.com/BurntSushi/jiff/issues/359):
504 Fix a bug where the RFC 2822 parser could panic on some inputs.
505
506
507 0.2.11 (2025-05-01)
508 ===================
509 This release includes new APIs for customizing Jiff's `strtime` behavior along
510 with a few minor bug fixes. Jiff's `strtime` formatting API has also been
511 optimized. It's about twice as fast as it was.
512
513 This release also coincides with the publication of `jiff-icu 0.2.0-beta.2`,
514 which has support for `icu 2.0.0-beta.2`.
515
516 Enhancements:
517
518 * [#338](https://github.com/BurntSushi/jiff/pull/338):
519 Add support for the `%c`, `%r`, `%X` and `%x` conversion specifiers.
520 * [#341](https://github.com/BurntSushi/jiff/issues/341):
521 Add support for `%q` in `jiff::fmt::strtime` (prints quarter of year).
522 * [#342](https://github.com/BurntSushi/jiff/issues/342):
523 Add support for `%::z` and `%:::z` in `jiff::fmt::strtime`.
524 * [#344](https://github.com/BurntSushi/jiff/issues/344):
525 Add support for `%N` in `jiff::fmt::strtime` (alias for `%9f`).
526 * [#350](https://github.com/BurntSushi/jiff/issues/350):
527 Add a "lenient" mode for `strtime` formatting APIs that ignores most errors.
528
529 Bug fixes:
530
531 * [#328](https://github.com/BurntSushi/jiff/issues/328):
532 Document default precision behavior of `Display` impls for datetime types.
533 * [#340](https://github.com/BurntSushi/jiff/issues/340):
534 Allow whitespace in more places in RFC 2822 parser (improves spec compliance).
535 * [#346](https://github.com/BurntSushi/jiff/issues/346):
536 `TimeZone::get("UTC")` should now always return `TimeZone::UTC`.
537
538 Performance:
539
540 * [#338](https://github.com/BurntSushi/jiff/pull/338):
541 Jiff's `strftime` APIs are now approximately twice as fast as they were.
542 Performance should be comparable to `chrono` and `time`'s prebuilt APIs.
543
544
545 0.2.10 (2025-04-21)
546 ===================
547 This release includes a bug fix for parsing `Tuesday` when using `%A` via
548 Jiff's `strptime` APIs. Specifically, it would recognize `Tueday` instead of
549 `Tuesday`.
550
551 Bug fixes:
552
553 * [#333](https://github.com/BurntSushi/jiff/issues/333):
554 Fix typo in `strptime` parsing from `Tueday` to `Tuesday`.
555
556
557 0.2.9 (2025-04-19)
558 ==================
559 This release includes a bug fix that, in debug mode, could result in datetime
560 types having different hashes for the same value. This could cause problems,
561 for example, if you are using datetimes as keys in a hash map. This problem
562 didn't exist when Jiff was compiled in release mode.
563
564 This release also improves the panic message shown when the `js` feature isn't
565 enabled and the current time is requested on `wasm32-unknown-unknown` targets.
566
567 Enhancements:
568
569 * [#296](https://github.com/BurntSushi/jiff/issues/296):
570 Provide a better panic message when `Zoned::now()` fails on WASM.
571
572 Bug fixes:
573
574 * [#330](https://github.com/BurntSushi/jiff/issues/330):
575 Fix bug where `Hash` on datetime types could yield different hash values for
576 the same underlying date/time.
577
578
579 0.2.8 (2025-04-13)
580 ==================
581 This release fixes a bug where the constructors on `SignedDuration`
582 for floating point durations could panic (in debug mode) or produce
583 incorrect results (in release mode). This bug only impacts users of
584 the `try_from_secs_{f32,f64}` and `from_secs_{f32,f64}` methods on
585 `SignedDuration`.
586
587 Enhancements:
588
589 * [#326](https://github.com/BurntSushi/jiff/pull/326):
590 Add an alternate `Debug` impl for `SignedDuration` that only shows its second
591 and nanosecond components (while using only one component when the other is
592 zero).
593
594 Bug fixes:
595
596 * [#324](https://github.com/BurntSushi/jiff/issues/324):
597 Fix a bug that could produce a panic or incorrect results in
598 `SignedDuration::(try_)?from_secs_{f32,f64}`.
599
600
601 0.2.7 (2025-04-13)
602 ==================
603 This release includes a bug fix that changes how an empty but set `TZ`
604 environment variable is interpreted (as indistinguishable from `TZ=UTC`).
605 This also includes a new enabled by default create feature, `perf-inline`,
606 which allows toggling Jiff's use of `inline(always)`. This may help improve
607 compile times or decrease binary size.
608
609 Enhancements:
610
611 * [#320](https://github.com/BurntSushi/jiff/pull/320):
612 Remove some internal uses of generics to mildly improve compile times.
613 * [#321](https://github.com/BurntSushi/jiff/pull/321):
614 Add `perf-inline` crate feature for controlling `inline(always)` annotations.
615
616 Bug fixes:
617
618 * [#311](https://github.com/BurntSushi/jiff/issues/311):
619 Make `TZ=` indistinguishable from `TZ=UTC`.
620
621
622 0.2.6 (2025-04-07)
623 ==================
624 This release includes a few bug fixes and support for discovering the IANA Time
625 Zone Database automatically on Illumos.
626
627 Enhancements:
628
629 * [#315](https://github.com/BurntSushi/jiff/issues/315):
630 Add support for automatically finding the tzdb on Illumos.
631
632 Bug fixes:
633
634 * [#305](https://github.com/BurntSushi/jiff/issues/305):
635 Fixed `Zoned` rounding on days with DST time zone transitions.
636 * [#309](https://github.com/BurntSushi/jiff/issues/309):
637 Fixed bug where `TimeZone::preceding` could omit historical time zone
638 transitions for time zones that have eliminated DST in the present.
639 * [#312](https://github.com/BurntSushi/jiff/issues/312):
640 Fixed `nth_weekday_in_month`, where it would sometimes incorrectly return an
641 error.
642
643
644 0.2.5 (2025-03-22)
645 ==================
646 This release updates Jiff's bundled copy of the [IANA Time Zone Database] to
647 `2025b`. See the [`2025b` release announcement] for more details.
648
649 Enhancements:
650
651 * [#300](https://github.com/BurntSushi/jiff/pull/300):
652 Update `jiff-tzdb` to `2025b`.
653
654 [`2025b` release announcement]: https://lists.iana.org/hyperkitty/list/[email protected]/thread/6JVHNHLB6I2WAYTQ75L6KEPEQHFXAJK3/
655
656
657 0.2.4 (2025-03-10)
658 ==================
659 This is another small release that fixes a problem where Jiff could break
660 builds if they relied on inference for integer comparisons. Specifically, Jiff
661 uses internal trait impls to make comparing its internal ranged integers
662 more convenient. But Rust the language has no concept of "internal" trait
663 impls, and thus this can impact type inference. If code was written in a way
664 that relies on a singular trait impl that is available, then adding Jiff to
665 the project can cause it to break.
666
667 This isn't arguably Jiff's fault per se, but since these trait impls were just
668 about internal convenience and not essential to Jiff's design, we adopt a
669 pragmatic approach and just remove them.
670
671 Bug fixes:
672
673 * [#293](https://github.com/BurntSushi/jiff/issues/293):
674 Remove internal trait impls that can cause breaks due to inference failures.
675
676
677 0.2.3 (2025-03-07)
678 ==================
679 This is a small release that fixes a bug in the handling of POSIX time zones
680 in some cases. Specifically, the implementation of `Date::yesterday` was wrong
681 when the date was the first of the month. This was a regression introduced in
682 `0.2.2` and was not present in older releases. More test coverage has been
683 added.
684
685 Bug fixes:
686
687 * [#290](https://github.com/BurntSushi/jiff/issues/290):
688 Fix bug in implementation of `Date::yesterday`.
689
690
691 0.2.2 (2025-03-06)
692 ==================
693 This release of Jiff includes a new opt-in proc macro for embedding a
694 `TimeZone` into your binary. Just enable Jiff's `static` feature, and this will
695 print the current time in the `America/New_York` time zone:
696
697 ```rust
698 use jiff::{
699 tz::{self, TimeZone},
700 Timestamp,
701 };
702
703 fn main() {
704 static TZ: TimeZone = tz::get!("America/New_York");
705 let zdt = Timestamp::now().to_zoned(TZ.clone());
706 println!("{zdt}");
707 }
708 ```
709
710 This enables `TimeZone` to be meaningfully used in core-only environments,
711 even when dynamic memory allocation isn't available.
712
713 This release also features a number of performance improvements for time zone
714 lookups. In some cases, the improvement is significant (by an order of
715 magnitude).
716
717 Additionally, the IANA Time Zone Database embedded into `jiff-tzdb` now
718 uses "rearguard" semantics. This means that the boolean flag indicating
719 whether daylight saving time is active or not (only accessible via
720 `TimeZone::to_offset_info`) will respect the actual definition of
721 daylight saving time. (This is relevant, for example, for time zones like
722 `Europe/Dublin`, where their summer time is _legally_ known as their standard
723 time, but is in effect daylight saving time.)
724
725 Enhancements:
726
727 * [#256](https://github.com/BurntSushi/jiff/issues/256):
728 Add `tz::{get,include}` macros for time zone support in core-only environments.
729 * [#258](https://github.com/BurntSushi/jiff/issues/258):
730 Switch to `rearguard` tzdb data in `jiff-tzdb` and document it.
731 * [#259](https://github.com/BurntSushi/jiff/pull/259):
732 De-duplicate TZif data in `jiff-tzdb`.
733 * [#273](https://github.com/BurntSushi/jiff/issues/273):
734 Add "crate features" documentation to `jiff-sqlx` and `jiff-diesel`.
735 * [#277](https://github.com/BurntSushi/jiff/issues/277):
736 Document semver guarantee for error conditions on `Timestamp` constructors.
737 * [#277](https://github.com/BurntSushi/jiff/pull/287):
738 Greatly optimize time zone lookups (for both timestamps and civil datetimes).
739
740 Bug fixes:
741
742 * [#261](https://github.com/BurntSushi/jiff/issues/261):
743 Improve the documentation for `ZonedWith::nanosecond` and
744 `ZonedWith::subsec_nanosecond`.
745
746
747 0.2.1 (2025-02-16)
748 ==================
749 This release includes a massive number of optimizations that significantly
750 improves performance in some cases. If you had a workload whose performance
751 with Jiff was underwhelming, please give it a try. I welcome questions via
752 [Discussions on GitHub].
753
754 This release also provides a new API, `Timestamp::constant`, for constructing
755 `Timestamp` values in a `const` context.
756
757 Enhancements:
758
759 * [#235](https://github.com/BurntSushi/jiff/discussions/235),
760 [#255](https://github.com/BurntSushi/jiff/discussions/255),
761 [#266](https://github.com/BurntSushi/jiff/pull/266):
762 A massive number of performance improvements. Jiff should now generally be
763 faster than `chrono` and `time`.
764 * [#263](https://github.com/BurntSushi/jiff/issues/263):
765 Add `Timestamp::constant` for constructing timestamps in `const` context.
766
767
768 0.2.0 (2025-02-10)
769 ==================
770 This is a new semver incompatible release of Jiff. It contains several breaking
771 changes. I expect most users of Jiff to be able to upgrade without any changes.
772 The fundamental API organization of Jiff has not changed.
773
774 Some of the highlights of this release include reducing footguns and better
775 ecosystem integration.
776
777 For reducing footguns, APIs on `Span` will no longer implicitly assume that
778 days are always 24 hours long. And `Span` no longer implements `PartialEq` or
779 `Eq` (instead favoring `span.fieldwise()` to create a value that supports naive
780 fieldwise comparison). Moreover, when using `TimeZone::system()` (perhaps via
781 `Zoned::now()`), if the system time zone could not be detected, then a special
782 `Etc/Unknown` time zone will be used instead. This avoids erroring, but also
783 surfaces itself to make it clearer that something has (perhaps) gone wrong.
784
785 As for ecosystem integration, this release coincides with the publication
786 of the [`jiff-icu`], [`jiff-sqlx`] and [`jiff-diesel`] crates. `jiff-icu`
787 integrates with the [ICU4X project], and is now the recommended way to use
788 Jiff to work with non-Gregorian calendars or to localize datetimes for end
789 users. `jiff-sqlx` and `jiff-diesel` provide wrapper types that implement the
790 necessary traits to make it ergonomic to store and retrieve Jiff values in a
791 database using [SQLx] or [Diesel], respectively.
792
793 Unless something unexpected happens, my plan is for the next breaking change
794 release to be Jiff 1.0 in about 6 months. Once Jiff 1.0 is out, I plan to
795 commit to it indefinitely.
796
797 **BREAKING CHANGES**:
798
799 This is an exhaustive list of breaking changes. Changes with the bolded
800 **RUNTIME** prefix are changes that will not be caught by the Rust compiler.
801 That is, they are changes in runtime behavior.
802
803 * [#28](https://github.com/BurntSushi/jiff/issues/28):
804 The deprecated `intz` routines on `Zoned`, `Timestamp`, `civil::DateTime` and
805 `civil::Date` have been removed. You can use `in_tz` instead. This change was
806 made because many found the name `intz` to be unclear.
807 * [#32](https://github.com/BurntSushi/jiff/issues/32):
808 The `PartialEq` and `Eq` trait implementations on `Span` have been removed.
809 Ideally these shouldn't have been used, but if you do need them, please use
810 `Span::fieldwise` to create a `SpanFieldwise`, which does have the `PartialEq`
811 and `Eq` traits implemented. These were removed on `Span` itself because they
812 made it very easy to commit subtle bugs.
813 * [#36](https://github.com/BurntSushi/jiff/issues/36):
814 Turn panics during `Timestamp::saturing_add` into errors. Callers adding
815 spans that are known to contain units of hours or smaller are guaranteed that
816 this will not return an error.
817 * **RUNTIME** [#48](https://github.com/BurntSushi/jiff/issues/48):
818 On `Span` APIs, days are no longer silently assumed to always be 24 hours when
819 a relative datetime is not provided. Instead, to perform operations on units
820 of days or bigger, callers must either provide a relative date or opt into
821 invariant 24-hour days with `SpanRelativeTo::days_are_24_hours`. Shortcuts have
822 been added to the span builders. For example, `SpanTotal::days_are_24_hours`.
823 * **RUNTIME** [#147](https://github.com/BurntSushi/jiff/issues/147):
824 Change the behavior of the deprecated `%V` conversion specifier in
825 `jiff::fmt::strtime` from formatting an IANA time zone identifier to formatting
826 an ISO 8601 week number. To format an IANA time zone identifier, use `%Q` or
827 `%:Q` (which were introduced in `jiff 0.1`).
828 * **RUNTIME** [#212](https://github.com/BurntSushi/jiff/issues/212):
829 When parsing into a `Zoned` with a civil time corresponding to a gap, we treat
830 all offsets as invalid and return an error. Previously, we would accept the
831 offset as given. This brings us into line with Temporal's behavior. For
832 example, previously Jiff accepted `2006-04-02T02:30-05[America/Indiana/Vevay]`
833 but will now return an error. This is desirable for cases where a datetime in
834 the future is serialized before a change in the daylight saving time rules.
835 For more examples, see `jiff::fmt::temporal::DateTimeParser::offset_conflict`
836 for details on how to change Jiff's default behavior. This behavior change also
837 applies to `tz::OffsetConflict::PreferOffset`.
838 * **RUNTIME** [#213](https://github.com/BurntSushi/jiff/issues/213):
839 Tweak the semantics of `tz::TimeZoneDatabase` so that it only initializes one
840 internal tzdb instead of trying to find as many as possible. It is unlikely
841 that you'll be impacted by this change, but it's meant to make the semantics
842 be a bit more sensible. (In `jiff 0.1`, it was in theory possible for one tz
843 lookup to succeed in the system zoneinfo and then another tz lookup to fail
844 in zoneinfo but succeed automatically via the bundled copy. But this seems
845 confusing and possibly not desirable. Hence the change.)
846 * [#218](https://github.com/BurntSushi/jiff/issues/218):
847 In order to make naming a little more consistent between `Zoned`
848 and `civil::Date`, the `civil::Date::to_iso_week_date` and
849 `civil::ISOWeekDate::to_date` APIs were renamed to `civil::Date::iso_week_date`
850 and `civil::ISOWeekDate::date`.
851 * [#220](https://github.com/BurntSushi/jiff/issues/220):
852 Remove `Span::to_duration` for converting a `Span` to a `std::time::Duration`
853 and rename `Span::to_jiff_duration` to `Span::to_duration`. This prioritizes
854 `SignedDuration` as the "primary" non-calendar duration type in Jiff. And makes
855 it more consistent with APIs like `Zoned::duration_since`. For non-calendar
856 spans, the `TryFrom<Span> for std::time::Duration` still exists. For calendar
857 durations, use `Span::to_duration` and then convert the `SignedDuration` to
858 `std::time::Duration`. Additionally, `Timestamp::from_jiff_duration` and
859 `Timestamp::as_jiff_duration` were renamed to `Timestamp::from_duration` and
860 `Timestamp::as_duration`, respectively. The old deprecated routines on the
861 unsigned `std::time::Duration` have been removed.
862 * [#221](https://github.com/BurntSushi/jiff/issues/221):
863 Change the type of the value yielded by the `jiff::tz::TimeZoneNameIter`
864 iterator from `String` to `jiff::tz::TimeZoneName`. This opaque type is more
865 API evolution friendly. To access the string, either use `TimeZoneName`'s
866 `Display` trait implementation, or its `as_str` method.
867 * [#222](https://github.com/BurntSushi/jiff/issues/222):
868 Split `TimeZone::to_offset` into two methods. One that just returns the
869 offset, and another, `TimeZone::to_offset_info`, which includes the offset,
870 DST status and time zone abbreviation. The extra info is rarely needed and
871 is sometimes more costly to compute. Also, make the lifetime of the time
872 zone abbreviation returned by `TimeZoneTransition::abbreviation` tied to
873 the transition instead of the time zone (for future API flexibility, likely
874 in core-only environments). This change was overall motivated by wanting to
875 do less work in the common case (where we only need the offset), and for
876 reducing the size of a `TimeZone` considerably in core-only environments.
877 Callers previously using `TimeZone::to_offset` to get DST status and time zone
878 abbreviation should now use `TimeZone::to_offset_info`.
879 * **RUNTIME** [#230](https://github.com/BurntSushi/jiff/issues/230):
880 When `TimeZone::system()` cannot find a system configured time zone, `jiff
881 0.1` would automatically fall back to `TimeZone::UTC` (with a WARN-level log
882 message). In `jiff 0.2`, the fall back is now to `TimeZone::unknown()`, which
883 has a special `Etc/Unknown` identifier (as specified by Unicode and reserved by
884 the IANA time zone database). The fallback otherwise still behaves as if it
885 were `TimeZone::UTC`. This helps surface error conditions related to finding
886 the system time zone without causing unrecoverable failure.
887
888 Enhancements:
889
890 * [#136](https://github.com/BurntSushi/jiff/issues/136):
891 When the special `SpanRelativeTo::days_are_24_hours()` marker is used, weeks
892 will also be treated as invariant. That is, seven 24-hour days. In all cases,
893 working with years and months still requires a relative date.
894 * [#228](https://github.com/BurntSushi/jiff/issues/228):
895 It is now possible to forcefully use a bundled copy of the IANA time zone
896 database without relying on disabling crate features. This can be done by
897 enabling the `tzdb-bundle-always` crate feature and explicitly creating a
898 `jiff::tz::TimeZoneDatabase::bundled()` database. Once in hand, you must use
899 APIs like `TimeZoneDatabase::get` to create a `TimeZone` and avoid any APIs
900 that implicitly use the global time zone database (like `Timestamp::in_tz` or
901 even `Zoned::from_str`).
902 * [#238](https://github.com/BurntSushi/jiff/pull/238):
903 Add integration with the ICU4X project via the [`jiff-icu`] crate. `jiff-icu`
904 provides traits for easily converting between datetime types defined in Jiff
905 and datetime types defined in ICU4X.
906 * [#240](https://github.com/BurntSushi/jiff/pull/240):
907 Add integration with the SQLx project via the [`jiff-sqlx`] crate. `jiff-sqlx`
908 provides wrapper types that implement the necessary traits in SQLx for
909 reasonably ergonomic integration. This includes PostgreSQL and SQLite support,
910 but not MySQL support. (It's not clear if it's possible at present to provide
911 MySQL support for SQLx for datetime types outside of SQLx itself.)
912 * [#241](https://github.com/BurntSushi/jiff/pull/241):
913 Add integration with the Diesel project via the [`jiff-diesel`] crate.
914 `jiff-diesel` provides wrapper types that implement the necessary traits in
915 Diesel for reasonably ergonomic integration. This includes MySQL, PostgreSQL
916 and SQLite support.
917
918
919 0.1.29 (2025-02-02)
920 ===================
921 This release includes a few small enhancements and a bug fix. In particular,
922 there is now Serde support for `TimeZone` and the `ISOWeekDate` API has been
923 filled out a bit more.
924
925 Unless a serious issue is uncovered, my plan is that this will be the last
926 release before `jiff 0.2`.
927
928 Enhancements:
929
930 * [#89](https://github.com/BurntSushi/jiff/issues/89):
931 Opt-in support for using Serde with `jiff::tz::TimeZone` has been added.
932 * [#227](https://github.com/BurntSushi/jiff/issues/227):
933 The `civil::ISOWeekDate` API has been beefed up with a few convenience methods.
934 * [#233](https://github.com/BurntSushi/jiff/issues/233):
935 Add `tz::Offset::round` for rounding time zone offsets.
936
937 Bug fixes:
938
939 * [#231](https://github.com/BurntSushi/jiff/issues/231):
940 Use more flexible offset equality when parsing offsets with fractional minutes.
941
942
943 0.1.28 (2025-01-27)
944 ===================
945 This is a small release that just removes the dev-dependency on `serde_yml`.
946 It has been replaced with the deprecated `serde_yaml`. See
947 [this post about `serde_yml` shenanigans](https://x.com/davidtolnay/status/1883906113428676938)
948 for why this was done. Note that this was only a dev-dependency and thus doesn't
949 impact folks using Jiff.
950
951 Bug fixes:
952
953 * [#225](https://github.com/BurntSushi/jiff/pull/225):
954 Remove dependency on `serde_yml` in favor of `serde_yaml`.
955
956
957 0.1.27 (2025-01-25)
958 ===================
959 This is a small release with a bug fix for precision loss in some cases when
960 doing arithmetic on `Timestamp` or `Zoned`.
961
962 Bug fixes:
963
964 * [#223](https://github.com/BurntSushi/jiff/issues/223):
965 Fix the check for fractional seconds before taking the fast path.
966
967
968 0.1.26 (2025-01-23)
969 ===================
970 This is a small release with another deprecation and a new API for doing
971 prefix parsing via `strptime`. There's also a bug fix for a corner case
972 when dealing with daylight saving time gaps with the `Zoned::with` API.
973
974 Deprecations:
975
976 * [#210](https://github.com/BurntSushi/jiff/pull/210):
977 Deprecate `ISOWeekDate::to_date` in favor of `ISOWeekDate::date`.
978
979 Enhancements:
980
981 * [#209](https://github.com/BurntSushi/jiff/issues/209):
982 Add `fmt::strtime::BrokenDownTime::parse_prefix` for parsing only a prefix.
983
984 Bug fixes:
985
986 * [#211](https://github.com/BurntSushi/jiff/issues/211):
987 Fix unintuitive behavior of `Zoned::with` when time falls in a DST gap.
988
989
990 0.1.25 (2025-01-21)
991 ===================
992 This release contains a number of deprecations in preparation for a `jiff 0.2`
993 release. The deprecations are meant to facilitate a smoother transition. The
994 deprecations, when possible, come with new APIs that will permit users to write
995 forward compatible code that will work in both `jiff 0.1` and `jiff 0.2`.
996
997 This release also includes a handful of new conversion specifiers in Jiff's
998 `strftime` and `strptime` APIs. This improves compatibility with the analogous
999 implementation with GNU libc.
1000
1001 Deprecations:
1002
1003 * [#28](https://github.com/BurntSushi/jiff/issues/28):
1004 The `intz` methods on `Zoned`, `Timestamp`, `civil::DateTime` and `civil::Date`
1005 have been deprecated in favor of `in_tz`.
1006 * [#32](https://github.com/BurntSushi/jiff/issues/32):
1007 The `Eq` and `PartialEq` trait implementations on `Span` have been deprecated
1008 in favor of using the new `SpanFieldwise` type.
1009 * [#48](https://github.com/BurntSushi/jiff/issues/48):
1010 Silently assuming days are always 24 hours in some `Span` APIs has now been
1011 deprecated. This will become an error in `jiff 0.2`. To continue assuming
1012 days are 24 hours without a relative reference date, you can use the new
1013 `SpanRelativeTo::days_are_24_hours` API. In `jiff 0.1`, you'll seen a
1014 WARN-level log message emitted if you're code will be broken by `jiff 0.2`.
1015 * [#147](https://github.com/BurntSushi/jiff/issues/147):
1016 Both `%V` and `%:V` have been deprecated in favor of `%Q` and `%:Q`. In
1017 `jiff 0.2`, `%V` will correspond to the ISO 8601 week number and `%:V` will
1018 result in an error. This change was made to improve compatibility with other
1019 `strtime` implementations. `%V` and `%:V` continue to correspond to IANA
1020 time zone identifiers in `jiff 0.1`, but using them for parsing or formatting
1021 will result in a WARN-level deprecation message.
1022
1023 Enhancements:
1024
1025 * [#147](https://github.com/BurntSushi/jiff/issues/147):
1026 Adds a number of new conversion specifiers to Jiff's `strftime` and
1027 `strptime` APIs. Specifically, `%C`, `%G`, `%g`, `%j`, `%k`, `%l`, `%n`, `%R`,
1028 `%s`, `%t`, `%U`, `%u`, `%W`, `%w`. Their behavior should match the
1029 corresponding specifiers in GNU libc.
1030
1031
1032 0.1.24 (2025-01-16)
1033 ===================
1034 This release updates Jiff's bundled copy of the [IANA Time Zone Database] to
1035 `2025a`. See the [`2025a` release announcement] for more details.
1036
1037 Enhancements:
1038
1039 * [#206](https://github.com/BurntSushi/jiff/pull/206):
1040 Update `jiff-tzdb` to `2025a`.
1041
1042 [`2025a` release announcement]: https://lists.iana.org/hyperkitty/list/[email protected]/thread/MWII7R3HMCEDNUCIYQKSSTYYR7UWK4OQ/
1043
1044
1045 0.1.23 (2025-01-13)
1046 ===================
1047 This release includes some bug fixes, particularly for compilation on
1048 `aarch64-linux-android`. There are also some minor enhancements, such as making
1049 `Zoned::iso_week_date` a convenience function for `civil::Date::iso_week_date`,
1050 in line with similar functions.
1051
1052 My current plan is to make a reasonably quick transition to `jiff 0.2` with a
1053 few pending breaking changes. I will be making some `jiff 0.1` releases with
1054 deprecations in order to make the transition as smooth as possible. If all goes
1055 well with `jiff 0.2`, then my plan is still to do a Jiff 1.0 release in the
1056 Summer of 2025.
1057
1058 Deprecations:
1059
1060 * [#197](https://github.com/BurntSushi/jiff/discussions/197):
1061 `Date::to_iso_week_date` has been deprecated in favor of `Date::iso_week_date`.
1062
1063 Enhancements:
1064
1065 * [#196](https://github.com/BurntSushi/jiff/discussions/196):
1066 Improve ISO week date documentation regarding weekday offsets.
1067 * [#197](https://github.com/BurntSushi/jiff/discussions/197):
1068 Add `Zoned::iso_week_date`, `DateTime::iso_week_date` and
1069 `Date::iso_week_date`.
1070
1071 Bug fixes:
1072
1073 * [#200](https://github.com/BurntSushi/jiff/issues/200):
1074 Fix compilation failure on Android in a Termux shell.
1075 * [#202](https://github.com/BurntSushi/jiff/pull/202):
1076 Re-add license files to crate artifact.
1077
1078
1079 0.1.22 (2025-01-12)
1080 ===================
1081 This release adds support for Android. This support means that Jiff will
1082 automatically read its special concatenated time zone database, and will
1083 read the `persist.sys.timezone` property to determine the system's current
1084 time zone.
1085
1086 See [PLATFORM] for more specific information about Android support.
1087
1088 Note that this release also removed all non-essential files (including tests
1089 and test data) for the artifact uploaded to crates.io. If you need or want
1090 these files, please open a new issue.
1091
1092 Enhancements:
1093
1094 * [#140](https://github.com/BurntSushi/jiff/issues/140):
1095 Add support for the Android platform.
1096
1097
1098 0.1.21 (2025-01-04)
1099 ===================
1100 This release includes a new API for setting the unit designator label in a
1101 friendly formatted duration for zero-length durations.
1102
1103 Enhancements:
1104
1105 * [#192](https://github.com/BurntSushi/jiff/issues/192):
1106 Add option to the friendly printer for setting the unit when writing a
1107 zero-length duration.
1108
1109
1110 0.1.20 (2025-01-03)
1111 ===================
1112 This release includes a new type, `Pieces`, in the `jiff::fmt::temporal`
1113 sub-module. This exposes the individual components of a parsed Temporal
1114 ISO 8601 datetime string. It allows users of Jiff to circumvent the checks
1115 in the higher level parsing routines that prevent you from shooting yourself
1116 in the foot.
1117
1118 For example, parsing into a `Zoned` will return an error for raw RFC 3339
1119 timestamps like `2025-01-03T22:03-05` because there is no time zone annotation.
1120 Without a time zone, Jiff cannot do time zone aware arithmetic and rounding.
1121 Instead, such a datetime can only be parsed into a `Timestamp`. This lower
1122 level `Pieces` API now permits users of Jiff to parse this string into its
1123 component parts and assemble it into a `Zoned` if they so choose.
1124
1125 Enhancements:
1126
1127 * [#188](https://github.com/BurntSushi/jiff/issues/188):
1128 Add `fmt::temporal::Pieces` for granular datetime parsing and formatting.
1129
1130
1131 0.1.19 (2025-01-02)
1132 ===================
1133 This releases includes a UTF-8 related bug fix and a few enhancements.
1134
1135 Firstly, a `Span`'s default `Display` implementation now writes uppercase
1136 unit designator labels. That means you'll get `P1Y2M3DT4H5M6S` instead
1137 of `P1y2m3dT4h5m6s` by default. You can restore previous behavior via
1138 `jiff::fmt::temporal::SpanPrinter::lowercase`. This change was made to improve
1139 interoperability.
1140
1141 Secondly, `SignedDuration` now supports rounding via `SignedDuration::round`.
1142 Note that it only supports rounding time units (hours or smaller). In order to
1143 round with calendar units, you'll still need to use a `Span`.
1144
1145 Enhancements:
1146
1147 * [#130](https://github.com/BurntSushi/jiff/issues/130):
1148 Document value ranges for methods like `year`, `day`, `hour` and so on.
1149 * [#187](https://github.com/BurntSushi/jiff/issues/187):
1150 Add a rounding API (for time units only) on `SignedDuration`.
1151 * [#190](https://github.com/BurntSushi/jiff/issues/190):
1152 `Span` and `SignedDuration` now use uppercase unit designator labels in their
1153 default ISO 8601 `Display` implementation.
1154
1155 Bug fixes:
1156
1157 * [#155](https://github.com/BurntSushi/jiff/issues/155):
1158 Relax `strftime` format strings from ASCII-only to all of UTF-8.
1159
1160
1161 0.1.18 (2024-12-31)
1162 ===================
1163 This release includes a few minor enhancements. Namely, the ability to iterate
1164 over time zone transitions (in the future or the past), and some improvements
1165 to failure modes when `Timestamp` and `Span` arithmetic fails.
1166
1167 Enhancements:
1168
1169 * [#144](https://github.com/BurntSushi/jiff/issues/144):
1170 Add APIs for iterating over the transitions of a time zone.
1171 * [#145](https://github.com/BurntSushi/jiff/issues/145):
1172 Improve docs and error messages around fallible `Timestamp` arithmetic.
1173
1174
1175 0.1.17 (2024-12-31)
1176 ===================
1177 This release enhances Jiff's support for `no_std` environments by making its
1178 `alloc` feature optional. When `alloc` is disabled, only fixed offset time
1179 zones are supported and error messages are significantly degraded. If you have
1180 core-only use cases for Jiff, I'd love to hear about them on the issue tracker.
1181
1182 Enhancements:
1183
1184 * [#162](https://github.com/BurntSushi/jiff/issues/162):
1185 Support platforms that do not have atomics in `std`.
1186 * [#168](https://github.com/BurntSushi/jiff/issues/168):
1187 Jiff now supports disabling the `alloc` feature, which enables core-only mode.
1188 * [#169](https://github.com/BurntSushi/jiff/issues/169):
1189 Add `TimeZone::to_fixed_offset` for accessing an invariant offset if possible.
1190
1191
1192 0.1.16 (2024-12-26)
1193 ===================
1194 This release includes a new `jiff::fmt::friendly` module for formatting and
1195 parsing durations in a more human readable format than what ISO 8601 specifies.
1196 ISO 8601 remains the "default" duration format in Jiff due to its widespread
1197 support. Here are some examples:
1198
1199 ```text
1200 40d
1201 40 days
1202 1y1d
1203 1yr 1d
1204 3d4h59m
1205 3 days, 4 hours, 59 minutes
1206 3d 4h 59m
1207 2h30m
1208 2h 30m
1209 1mo
1210 1w
1211 1 week
1212 1w4d
1213 1 wk 4 days
1214 1m
1215 0.0021s
1216 0s
1217 0d
1218 0 days
1219 3 mins 34s 123ms
1220 3 mins 34.123 secs
1221 3 mins 34,123s
1222 1y1mo1d1h1m1.1s
1223 1yr 1mo 1day 1hr 1min 1.1sec
1224 1 year, 1 month, 1 day, 1 hour, 1 minute 1.1 seconds
1225 1 year, 1 month, 1 day, 01:01:01.1
1226 ```
1227
1228 To quickly demonstrate this new feature, here's a simple CLI program using
1229 Clap:
1230
1231 ```ignore
1232 use clap::Parser;
1233 use jiff::{Span, Zoned};
1234
1235 #[derive(Parser, Debug)]
1236 #[command(version, about, long_about = None)]
1237 struct Args {
1238 duration: Span,
1239 }
1240
1241 fn main() {
1242 let args = Args::parse();
1243 println!("adding duration to now: {}", &Zoned::now() + args.duration);
1244 }
1245 ```
1246
1247 And running the program:
1248
1249 ```text
1250 $ cargo run -q -- '1 year, 2 months, 5 hours'
1251 adding duration to now: 2026-02-26T18:58:22-05:00[America/New_York]
1252 $ cargo run -q -- 'P1Y2MT5H' # ISO 8601 durations are supported too!
1253 adding duration to now: 2026-02-26T19:00:57-05:00[America/New_York]
1254 ```
1255
1256 With Jiff, you should no longer need to pull in crates like
1257 [`humantime`](https://docs.rs/humantime) and
1258 [`humantime-serde`](https://docs.rs/humantime-serde)
1259 to accomplish a similar task.
1260
1261 While this new format doesn't support any kind of internationalization, the
1262 prevalence of the `humantime` crate suggests there's a desire for something
1263 like this. The "friendly" format is meant to service all the same use cases
1264 as `humantime` does for durations, but in a way that doesn't let you shoot
1265 yourself in the foot.
1266
1267 The new "friendly" format is now the default for the `Debug` implementations
1268 of both `Span` and `SignedDuration`. It's also available via the "alternate"
1269 `Display` implementations for `Span` and `SignedDuration` as well. Moreover,
1270 the `FromStr` trait implementations for both `Span` and `SignedDuration` will
1271 parse _both_ the ISO 8601 duration and this new "friendly" format. Finally,
1272 when `serde` integration is enabled, the `Deserialize` implementations for
1273 `SignedDuration` and `Span` also automatically parse either ISO 8601 or the
1274 friendly format. For serialization, ISO 8601 remains the default, but the
1275 `jiff::fmt::serde` module provides easy to use helpers to switch to the
1276 friendly format.
1277
1278 The `jiff::fmt::friendly` module documentation provides many more details,
1279 including a complete grammar for the format.
1280
1281 Enhancements:
1282
1283 * [#143](https://github.com/BurntSushi/jiff/pull/143):
1284 Add `Hash` implementation for `Zoned` and `Timestamp`.
1285
1286 Bug fixes:
1287
1288 * [#60](https://github.com/BurntSushi/jiff/issues/60):
1289 Use a better `Debug` output format for `SignedDuration` and `Span`.
1290 * [#111](https://github.com/BurntSushi/jiff/issues/111):
1291 Add a new "friendly" duration format.
1292 * [#138](https://github.com/BurntSushi/jiff/issues/138):
1293 Fix deserialization in `serde_yml` and `serde_yaml` crates.
1294 * [#161](https://github.com/BurntSushi/jiff/pull/161):
1295 Fix `serde` dependency configuration so that it builds in no-std mode.
1296
1297
1298 0.1.15 (2024-11-30)
1299 ===================
1300 This release fixes a bug where Jiff would sometimes fail to parse TZif files
1301 (found, typically, in `/usr/share/zoneinfo` on Unix systems). This occurred
1302 when the TZif file contained a time zone transition outside the range of Jiff's
1303 `Timestamp` type (which is `-9999-01-01` to `9999-12-31`). The bug fix works by
1304 clamping the out-of-range transitions to Jiff's supported range.
1305
1306 This bug only seems to occur in some environments where their TZif files
1307 contain more extreme values than what is typically found.
1308
1309 Bug fixes:
1310
1311 * [#163](https://github.com/BurntSushi/jiff/issues/163):
1312 Fix a bug where Jiff would fail to parse some TZif files.
1313
1314
1315 0.1.14 (2024-11-01)
1316 ===================
1317 This release introduces new APIs to the RFC 2822 printer that explicitly
1318 print timestamps in a format strictly compatible with [RFC 9110].
1319
1320 Enhancements:
1321
1322 * [#151](https://github.com/BurntSushi/jiff/issues/151):
1323 Add `rfc2822::DateTimePrinter::timestamp_to_rfc9110_string` method.
1324
1325
1326 0.1.13 (2024-09-07)
1327 ===================
1328 This release introduces a new `jiff::tz::TimeZone::try_system` API. It is like
1329 `TimeZone::system`, but returns an error instead of an automatic fall back to
1330 UTC when the system time zone could not be discovered.
1331
1332 This also includes an update to the bundled [IANA Time Zone Database] to the
1333 `2024b` release in the `jiff-tzdb` crate. As a reminder, the bundled database
1334 is not used or included on Unix platforms by default. See [PLATFORM] for more
1335 details.
1336
1337 Enhancements:
1338
1339 * [#65](https://github.com/BurntSushi/jiff/issues/65):
1340 Add `TimeZone::try_system` for fallibly determining the system's time zone.
1341 * [#125](https://github.com/BurntSushi/jiff/pull/125):
1342 Update to the `2024b` release of the [IANA Time Zone Database].
1343
1344
1345 0.1.12 (2024-08-31)
1346 ===================
1347 This release introduces some new minor APIs that support formatting
1348 `Timestamp` values as RFC 3339 strings with a specific offset.
1349
1350 Previously, using the standard formatting routines that Jiff provides, it was
1351 only possible to format a `Timestamp` using Zulu time. For example:
1352
1353 ```rust
1354 use jiff::Timestamp;
1355
1356 assert_eq!(
1357 Timestamp::UNIX_EPOCH.to_string(),
1358 "1970-01-01T00:00:00Z",
1359 );
1360 ```
1361
1362 This is fine most use cases, but it can be useful on occasion to format
1363 a `Timestamp` with a specific offset. While this isn't as expressive
1364 as formatting a datetime with a time zone (e.g., with an IANA time
1365 zone identifier), it may be useful in contexts where you just want to
1366 "hint" at what a user's local time is. To that end, there is a new
1367 `Timestamp::display_with_offset` method that makes this possible:
1368
1369 ```rust
1370 use jiff::{tz, Timestamp};
1371
1372 assert_eq!(
1373 Timestamp::UNIX_EPOCH.display_with_offset(tz::offset(-5)).to_string(),
1374 "1969-12-31T19:00:00-05:00",
1375 );
1376 ```
1377
1378 A corresponding API was added to `jiff::fmt::temporal::DateTimePrinter` for
1379 lower level use.
1380
1381 Moreover, this release also includes new convenience APIs on the Temporal and
1382 RFC 2822 printer types for returning strings. For example, previously, if you
1383 were using the RFC 2822 printer to format a `Timestamp`, you had to do this:
1384
1385 ```rust
1386 use jiff::{fmt::rfc2822::DateTimePrinter, Timestamp};
1387
1388 let mut buf = String::new();
1389 DateTimePrinter::new().print_timestamp(&Timestamp::UNIX_EPOCH, &mut buf).unwrap();
1390 assert_eq!(buf, "Thu, 1 Jan 1970 00:00:00 -0000");
1391 ```
1392
1393 But now you can just do this:
1394
1395 ```rust
1396 use jiff::{fmt::rfc2822::DateTimePrinter, Timestamp};
1397
1398 assert_eq!(
1399 DateTimePrinter::new().timestamp_to_string(&Timestamp::UNIX_EPOCH).unwrap(),
1400 "Thu, 1 Jan 1970 00:00:00 -0000",
1401 );
1402 ```
1403
1404 Enhancements:
1405
1406 * [#122](https://github.com/BurntSushi/jiff/pull/122):
1407 Support formatting `Timestamp` to an RFC 3339 string with a specific offset.
1408
1409
1410 0.1.11 (2024-08-28)
1411 ===================
1412 This release includes a few small enhancements that have been requested over
1413 the last several weeks. The biggest enhancement is a new `jiff::fmt::serde`
1414 sub-module. It provides convenience routines similar to Chrono's
1415 `chrono::serde` sub-module for serializing and deserializing between a
1416 `jiff::Timestamp` and an integer number of seconds, milliseconds, microseconds
1417 or nanoseconds. For example:
1418
1419 ```rust
1420 use jiff::Timestamp;
1421
1422 #[derive(serde::Serialize, serde::Deserialize)]
1423 struct Record {
1424 #[serde(with = "jiff::fmt::serde::timestamp::second::required")]
1425 timestamp: Timestamp,
1426 }
1427
1428 let json = r#"{"timestamp":1517644800}"#;
1429 let got: Record = serde_json::from_str(&json).unwrap();
1430 assert_eq!(got.timestamp, Timestamp::from_second(1517644800).unwrap());
1431 assert_eq!(serde_json::to_string(&got).unwrap(), json);
1432 ```
1433
1434 If you need to support optional timestamps via `Option<Timestamp>`, then use
1435 `jiff::fmt::serde::timestamp::second::optional` instead. Similarly, if you
1436 need to support milliseconds instead of seconds, then replace `second` with
1437 `millisecond` in the module path.
1438
1439 Enhancements:
1440
1441 * [#78](https://github.com/BurntSushi/jiff/issues/78):
1442 Add `BrokenDownTime::set_{offset,iana_time_zone}` APIs.
1443 * [#93](https://github.com/BurntSushi/jiff/issues/93):
1444 Add note about using `Timestamp::now().to_zoned()` instead of
1445 `Zoned::now().with_time_zone()`.
1446 * [#101](https://github.com/BurntSushi/jiff/issues/101):
1447 Add new `jiff::fmt::serde` module for integration with integer timestamps.
1448 * [#117](https://github.com/BurntSushi/jiff/pull/117):
1449 Remove `unsafe` usage in `libm` functions (applicable only to no-std users).
1450
1451
1452 0.1.10 (2024-08-23)
1453 ===================
1454 This release features a small bug fix where Jiff will detect an IANA time
1455 zone identifier in some cases where it wouldn't before. While Jiff would
1456 previously read the symlink metadata on `/etc/localtime` by default to discover
1457 the system configured time zone on Unix systems, it *wouldn't* do so when
1458 `TZ=/etc/localtime`. There's really no reason not to, so this release of Jiff
1459 is fixed to use symlink sniffing on file paths provided by the `TZ` environment
1460 variable.
1461
1462 Bug fixes:
1463
1464 * [#113](https://github.com/BurntSushi/jiff/issues/113):
1465 When `TZ=/etc/localtime`, use symlink metadata to detect IANA identifier.
1466
1467
1468 0.1.9 (2024-08-23)
1469 ==================
1470 This release introduces new options for controlling the precision
1471 of fractional seconds when printing `Zoned`, `Timestamp`,
1472 `civil::DateTime` or `civil::Time` values. This is principally exposed
1473 via `jiff::fmt::temporal::DateTimePrinter::precision`, but it's also
1474 available via the standard library's formatting machinery. For example,
1475 if `zdt` is a `jiff::Zoned`, then `format!("{zdt:.6}")` will format
1476 it into a string with microsecond precision, even if its fractional
1477 component is zero.
1478
1479 Enhancements:
1480
1481 * [#92](https://github.com/BurntSushi/jiff/issues/92):
1482 Support setting the precision of fractional seconds when printing datetimes.
1483
1484
1485 0.1.8 (2024-08-19)
1486 ==================
1487 This releases fixes a build error in Jiff's `alloc`-only configuration. This
1488 regression was introduced in `jiff 0.1.6`.
1489
1490 Bug fixes:
1491
1492 * [#108](https://github.com/BurntSushi/jiff/issues/108):
1493 Use `core::time::Duration` everywhere instead of `std::time::Duration`.
1494
1495
1496 0.1.7 (2024-08-18)
1497 ==================
1498 This release relaxes Jiff's dependency on `windows-sys` to include multiple
1499 semver incompatible releases. The purpose of this relaxation is to enable
1500 Jiff to work with different versions of `windows-sys` in the hopes that this
1501 reduces the likelihood that multiple copies of `windows-sys` are included in
1502 your dependency tree.
1503
1504 Dependencies:
1505
1506 * [#106](https://github.com/BurntSushi/jiff/pull/106):
1507 Relax `windows-sys` dependency constraint to `>=0.52.0, <=0.59.*`.
1508
1509
1510 0.1.6 (2024-08-18)
1511 ==================
1512 This release includes a new top-level type, `SignedDuration`, that provides a
1513 near exact replica of `std::time::Duration`, but signed. It is meant to provide
1514 alternative APIs for working with durations at a lower level than what `Span`
1515 provides, and to facilitate better integration with the standard library.
1516
1517 A `SignedDuration` has also been integrated with all of Jiff's datetime types.
1518 For example, previously, `Zoned::checked_add` only accepted a concrete
1519 `jiff::Span`. But now it accepts a `jiff::Span`, `jiff::SignedDuration` or even
1520 a `std::time::Duration`. Moreover, all of the `until` and `since` APIs on
1521 datetime types have been ported and copied to return `SignedDuration` under the
1522 `duration_until` and `duration_since` names.
1523
1524 This marks an initial integration phase with `SignedDuration`. It is planned
1525 to integrate it more with the datetime types. Currently, there are integrations
1526 on `Timestamp` and `Span`, but more will be added in the future.
1527
1528 Overall, folks should still use `Span`. That is the intended default duration
1529 type in Jiff and will continue to be. Users of Jiff may find `SignedDuration`
1530 useful in contexts where speed is important or when one needs to integrate
1531 with the standard library.
1532
1533 This release also includes a few related deprecations as the APIs involving
1534 `std::time::Duration` are phased out in favor of `SignedDuration`.
1535
1536 Deprecations:
1537
1538 * `Timestamp::as_duration`: replaced with `as_jiff_duration`, which will be
1539 renamed to `as_duration` in `jiff 0.2`.
1540 * `Timestamp::from_duration`: replaced with `from_jiff_duration`, which will be
1541 renamed to `from_duration` in `jiff 0.2`.
1542 * `Timestamp::from_signed_duration`: replaced with `from_jiff_duration`.
1543 * `Span::to_duration`: replaced with `to_jiff_duration`, which will be renamed
1544 to `to_duration` in `jiff 0.2`.
1545
1546 Basically, all of the above APIs either accept or return a
1547 `std::time::Duration`. To avoid breaking changes at this point, new methods
1548 for `SignedDuration` were added. For example, `Timestamp::as_jiff_duration`.
1549 In `jiff 0.2`, the above deprecated methods will be removed and replaced with
1550 equivalent methods that accept or return a `SignedDuration` instead. Callers
1551 can then convert between a `SignedDuration` and a `std::time::Duration` using
1552 appropriate `TryFrom` trait implementations.
1553
1554 Enhancements:
1555
1556 * [#21](https://github.com/BurntSushi/jiff/issues/21):
1557 Add new top-level `SignedDuration` type.
1558 * [#90](https://github.com/BurntSushi/jiff/issues/90):
1559 Improve error message when using `Span` with >=day units with a `Timestamp`.
1560
1561 Performance:
1562
1563 * [#104](https://github.com/BurntSushi/jiff/pull/104)
1564 Optimize offset calculations in time zones without DST.
1565 * [#105](https://github.com/BurntSushi/jiff/pull/105)
1566 Optimize offset calculations for timestamps after last DST rule change.
1567
1568
1569 0.1.5 (2024-08-09)
1570 ==================
1571 This release includes some improvements and bug fixes, particularly for Jiff's
1572 `strtime` APIs.
1573
1574 Enhancements:
1575
1576 * [#63](https://github.com/BurntSushi/jiff/issues/63):
1577 Add link to original Chrono maintainer's commentary in `DESIGN.md`.
1578 * [#75](https://github.com/BurntSushi/jiff/issues/75):
1579 Add support for `%V` for formatting _and_ parsing IANA time zone identifiers.
1580 * [#79](https://github.com/BurntSushi/jiff/pull/79):
1581 Add `devcontainer.json` to support GitHub Codespaces.
1582 * [#85](https://github.com/BurntSushi/jiff/pull/85):
1583 Set correct ranges for internal tracking in return value of `days_in_month`.
1584
1585 Bug fixes:
1586
1587 * [#59](https://github.com/BurntSushi/jiff/issues/59):
1588 Fixes a bug where some `Span`s could not be roundtripped through ISO 8601.
1589 * [#71](https://github.com/BurntSushi/jiff/issues/71):
1590 Tweak wording in documentation of "printf"-style API.
1591 * [#73](https://github.com/BurntSushi/jiff/issues/73):
1592 Make it so `%.Nf` only formats to `N` decimal places.
1593 * [#77](https://github.com/BurntSushi/jiff/pull/77):
1594 Disable optimizations when running tests.
1595
1596
1597 0.1.4 (2024-08-01)
1598 ==================
1599 This release includes a small improvement for `strptime` that permits
1600 `%Y%m%d` to parse `20240730` correctly.
1601
1602 Enhancements:
1603
1604 * [#62](https://github.com/BurntSushi/jiff/issues/62):
1605 Tweak `strptime` so that things like `%Y` aren't unceremoniously greedy.
1606
1607
1608 0.1.3 (2024-07-30)
1609 ==================
1610 This release features support for `wasm32-unknown-unknown`. That is, when
1611 Jiff's new `js` crate feature is enabled, Jiff will automatically use
1612 JavaScript APIs to determine the current time and time zone.
1613
1614 Enhancements:
1615
1616 * [#58](https://github.com/BurntSushi/jiff/pull/58):
1617 Add WASM support and a new `PLATFORM.md` guide.
1618
1619
1620 0.1.2 (2024-07-28)
1621 ==================
1622 This release features a few new APIs that a need for arose while experimenting
1623 with actually using Jiff in real projects. Namely, the `jiff::fmt::strtime`
1624 module now has `%f` and `%.f` directives for parsing and formatting fractional
1625 seconds. And both `jiff::fmt::rfc2822` and `jiff::fmt::strtime` now have
1626 support for skipping weekday checks during parsing. (Previously, Jiff required
1627 that an English weekday be consistent with the date parsed, and there was no
1628 way to opt out. While this is still the default behavior, callers can disable
1629 this check.)
1630
1631 Enhancements:
1632
1633 * [#52](https://github.com/BurntSushi/jiff/pull/52):
1634 Improve documentation for `Span` getter methods.
1635 * [#53](https://github.com/BurntSushi/jiff/pull/53):
1636 Add support for skipping weekday checking when parsing datetimes.
1637 * [#55](https://github.com/BurntSushi/jiff/pull/55):
1638 Add support for fractional seconds in `jiff::fmt::strtime`.
1639
1640 Bug fixes:
1641
1642 * [#49](https://github.com/BurntSushi/jiff/pull/49):
1643 Fix informational regex describing ISO 8601 format.
1644 * [#51](https://github.com/BurntSushi/jiff/pull/51):
1645 Explicitly allow new deny-by-default lint `ambiguous_negative_literals`.
1646
1647
1648 0.1.1 (2024-07-25)
1649 ==================
1650 This is a new semver compatible release. The principle addition are APIs for
1651 converting between a `jiff::Span` and a `std::time::Duration`. Specifically,
1652 there are now `TryFrom<Span> for Duration` and `TryFrom<Duration> for Span`
1653 trait implementations. There is also a `Span::to_duration`, which requires a
1654 relative date, for converting spans with non-uniform units (like months) to a
1655 `Duration`.
1656
1657 Enhancements:
1658
1659 * [#21](https://github.com/BurntSushi/jiff/issues/21),
1660 [#40](https://github.com/BurntSushi/jiff/issues/40):
1661 Adds APIs for converting between `Span` and `std::time::Duration`.
1662
1663 Bug fixes:
1664
1665 * [#36](https://github.com/BurntSushi/jiff/issues/36):
1666 Saturating arithmetic for `Timestamp` panics with day-or-greater units.
1667 * [#38](https://github.com/BurntSushi/jiff/issues/38):
1668 Fix some bugs in the micro-benchmarks.
1669 * [#39](https://github.com/BurntSushi/jiff/issues/39):
1670 Document that the RFC 2822 parser is not technically fully spec compliant.
1671
1672
1673 0.1.0 (2024-07-21)
1674 ==================
1675 The initial release of Jiff.
1676
1677 [IANA Time Zone Database]: https://www.iana.org/time-zones
1678 [PLATFORM]: PLATFORM.md
1679 [RFC 9110]: https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.7-15
1680 [`jiff-icu`]: https://docs.rs/jiff-icu
1681 [`jiff-sqlx`]: https://docs.rs/jiff-sqlx
1682 [`jiff-diesel`]: https://docs.rs/jiff-diesel
1683 [ICU4X project]: https://github.com/unicode-org/icu4x
1684 [SQLx]: https://github.com/launchbadge/sqlx
1685 [Diesel]: https://github.com/diesel-rs/diesel
1686 [Discussions on GitHub]: https://github.com/BurntSushi/jiff/discussions
1687 [`defmt`]: https://github.com/BurntSushi/jiff/issues/587