File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
blog/2025-09-24-temporal-release Expand file tree Collapse file tree 3 files changed +4
-4
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ let diff = today
289289let tomorrow_japanese = tomorrow . with_calendar (Calendar :: JAPANESE );
290290
291291// We can retrieve the calendar's RFC9557 string
292- println! (" {tomorrow_japanese}" ); // 2025-09-23 [u-ca=japanese]
292+ println! (" {tomorrow_japanese}" ); // 2025-09-24 [u-ca=japanese]
293293```
294294
295295#### Working with dates and time zones
@@ -316,15 +316,15 @@ let today = Temporal::now().zoned_date_time_iso(None).unwrap();
316316let mut options = DifferenceSettings :: default ();
317317options . largest_unit = Some (Unit :: Year );
318318let diff = today . since (& zdt , options ). unwrap ();
319- println! (" {diff}" ); // P6M22D
319+ println! (" {diff}" ); // P6M23D
320320
321321// We can change the calendar for the `ZonedDateTime`
322322let today_coptic = today . with_calendar (Calendar :: COPTIC );
323- println! (" {today_coptic}" ); // 2025-09-23T12 :36:56.914365368-05:00[America/Chicago][u-ca=coptic]
323+ println! (" {today_coptic}" ); // 2025-09-24T10 :36:56.914365368-05:00[America/Chicago][u-ca=coptic]
324324
325325// We can also easily convert it into just the date.
326326let today_plain_date_coptic = today_coptic . to_plain_date ();
327- println! (" {today_coptic}" ); // 2025-09-23 [u-ca=coptic]
327+ println! (" {today_coptic}" ); // 2025-09-24 [u-ca=coptic]
328328```
329329
330330While we can extend these examples further, a more fun exercise for the
You can’t perform that action at this time.
0 commit comments