From 90d9d02c9e30c673e6394e53e578a106e54b74fe Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 28 Feb 2025 02:28:54 +0000 Subject: Improve the consistency of duration strings. Unfortunately because of leap years we can't really make duration strings exact. Because of this we have always added 6 hours on to each year to make it correct over time. However, we did not do this in any kind of consistent way which resulted in weird roundtripped duration strings which made this very confusing for users While I'm touching the duration code I've also cleaned it up. --- include/timeutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/timeutils.h b/include/timeutils.h index bc85b59bd..5dd10dd6e 100644 --- a/include/timeutils.h +++ b/include/timeutils.h @@ -40,7 +40,7 @@ namespace Duration /** Converts a number of seconds to a duration string. * - * e.g. 33,019,565 weill result in 1y2w3d4h6m5s which represents one year, + * e.g. 33,019,565 will result in 1y2w3d4h6m5s which represents one year, * two weeks, three days, four hours, six minutes, and five seconds. */ CoreExport std::string ToString(unsigned long duration); -- cgit v1.3.1-10-gc9f91