dyears() instead of dyear() (#1429)

This commit is contained in:
Peter Baumgartner
2023-04-17 15:21:07 +02:00
committed by GitHub
parent cc5e351c10
commit 7f2e1d6f19

View File

@@ -654,7 +654,7 @@ flights_dt |>
### Intervals {#sec-intervals} ### Intervals {#sec-intervals}
What does `dyears(1) / ddays(365)` return? What does `dyears(1) / ddays(365)` return?
It's not quite one, because `dyear()` is defined as the number of seconds per average year, which is 365.25 days. It's not quite one, because `dyears()` is defined as the number of seconds per average year, which is 365.25 days.
What does `years(1) / days(1)` return? What does `years(1) / days(1)` return?
Well, if the year was 2015 it should return 365, but if it was 2016, it should return 366! Well, if the year was 2015 it should return 365, but if it was 2016, it should return 366!