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
289
289
let tomorrow_japanese = tomorrow . with_calendar (Calendar :: JAPANESE );
290
290
291
291
// 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]
293
293
```
294
294
295
295
#### Working with dates and time zones
@@ -316,15 +316,15 @@ let today = Temporal::now().zoned_date_time_iso(None).unwrap();
316
316
let mut options = DifferenceSettings :: default ();
317
317
options . largest_unit = Some (Unit :: Year );
318
318
let diff = today . since (& zdt , options ). unwrap ();
319
- println! (" {diff}" ); // P6M22D
319
+ println! (" {diff}" ); // P6M23D
320
320
321
321
// We can change the calendar for the `ZonedDateTime`
322
322
let 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]
324
324
325
325
// We can also easily convert it into just the date.
326
326
let 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]
328
328
```
329
329
330
330
While we can extend these examples further, a more fun exercise for the
You can’t perform that action at this time.
0 commit comments