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:59 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2025-03-16 12:48:59 +0100
commit4b6d7e11c893c7c201ef0a5a43609a12a5235187 (patch)
tree42a3aaef992613eab55c5154ca7d207a4f70ef99 /doc/string_ops.rst
parent5acefbd715c8720abc5d8ccd5349e1d9589739df (diff)
parent3aa2b0a6657b0ebd1618ee684f8ae31cd8bf127b (diff)
Merge branch 'feature/upstream' into develop
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