summaryrefslogtreecommitdiff
path: root/doc/string_ops.rst
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2025-03-16 12:48:45 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2025-03-16 12:48:45 +0100
commitcec79a3f5578da4a9f9085282389482edf45c81b (patch)
tree5c45f5efee77f9f8d84c3a1c7e02b12b6725a2e3 /doc/string_ops.rst
parent677e5b0b948fe62d8017c198c57049275f6fe61a (diff)
New upstream version 4.26upstream/4.26upstream
Diffstat (limited to 'doc/string_ops.rst')
-rw-r--r--doc/string_ops.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/string_ops.rst b/doc/string_ops.rst
index 91da2f6..aea4896 100644
--- a/doc/string_ops.rst
+++ b/doc/string_ops.rst
@@ -478,7 +478,10 @@ be 1/12 such a year. This is consistent with the units employed by systemd.
``seconds`` into a string representation broken into days, hours, minutes, and
remaining seconds as appropriate. By default, only the d/h/min/s units are
emitted. The ``flags`` argument specifies if any other units should be emitted;
-``HXUNIT_YEARS``, ``HXUNIT_MONTHS`` and ``HXUNIT_WEEKS`` are available.
+``HXUNIT_YEARS``, ``HXUNIT_MONTHS`` and ``HXUNIT_WEEKS`` are available. The
+longest string HX_unit_seconds can emit on a contemporary 64-bit POSIX system
+with 1970 epoch is 40 characters (so a buffer should be no less than 41 bytes),
+cf. ``HXSIZEOF_UNITSEC64``.
Examples