From 4c3f5aa6048622bf7556e910a191af0cd68d4e5c Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Tue, 9 Aug 2022 15:51:15 -0500 Subject: [PATCH] More caveats about durations Fixes #957 --- datetimes.qmd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/datetimes.qmd b/datetimes.qmd index 33bbe1e..f272f11 100644 --- a/datetimes.qmd +++ b/datetimes.qmd @@ -409,7 +409,10 @@ dyears(1) ``` Durations always record the time span in seconds. -Larger units are created by converting minutes, hours, days, weeks, and years to seconds at the standard rate (60 seconds in a minute, 60 minutes in an hour, 24 hours in day, 7 days in a week, 365 days in a year). +Larger units are created by converting minutes, hours, days, weeks, and years to seconds: 60 seconds in a minute, 60 minutes in an hour, 24 hours in a day, and 7 days in a week. +Larger time units are more problematic. +A year is uses the "average" number of days in a year, i.e. 365.25. +There's no way to convert a month to a duration, because there's just too much variation. You can add and multiply durations: