summaryrefslogtreecommitdiff
path: root/doc/string_ops.rst
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2025-03-27 13:19:31 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2025-03-27 13:19:31 +0100
commita81a93beca9a077b4254488ba5617b44fca8d0c1 (patch)
tree4eb17ff1b432f2768ab8c88c267c4984b776380e /doc/string_ops.rst
parent1c4b96855c415c48c0b3281b801c2e89fb935061 (diff)
parentfaa9f121de6d65800468d87d8eca0e3ff06b4ae0 (diff)
Merge branch 'release/debian/4.26-1'HEADdebian/4.26-1master
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