From 7f2e1d6f199625fbab4bb667a21300bc225682ba Mon Sep 17 00:00:00 2001 From: Peter Baumgartner Date: Mon, 17 Apr 2023 15:21:07 +0200 Subject: [PATCH] dyears() instead of dyear() (#1429) --- datetimes.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datetimes.qmd b/datetimes.qmd index 4f8039e..c58c2c1 100644 --- a/datetimes.qmd +++ b/datetimes.qmd @@ -654,7 +654,7 @@ flights_dt |> ### Intervals {#sec-intervals} 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? Well, if the year was 2015 it should return 365, but if it was 2016, it should return 366!