diff options
| author | 2025-02-28 02:28:54 +0000 | |
|---|---|---|
| committer | 2025-02-28 03:55:08 +0000 | |
| commit | 90d9d02c9e30c673e6394e53e578a106e54b74fe (patch) | |
| tree | c03302534527770c29c446a39debf9dad830823e /include | |
| parent | Deprecate bitmask DNSBL records. (diff) | |
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.
Diffstat (limited to 'include')
| -rw-r--r-- | include/timeutils.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
