From 09a0268089d5e998d786af8c9720bcf654f564fc Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 25 Dec 2021 13:09:46 +0100 Subject: [PATCH 292/310] ctime.3: Document that ctime() checks the ISO_CTIME variable Obtained from: ElectroBSD --- contrib/tzcode/stdtime/ctime.3 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/contrib/tzcode/stdtime/ctime.3 b/contrib/tzcode/stdtime/ctime.3 index 771027fa62ec..4198b91f1191 100644 --- a/contrib/tzcode/stdtime/ctime.3 +++ b/contrib/tzcode/stdtime/ctime.3 @@ -134,6 +134,15 @@ and returns a pointer to a 26-character string of the form: Thu Nov 24 18:22:48 1986\en\e0 .Ed .Pp +As a non-standard extension the +.Fn ctime +function checks the environment variable ISO_CTIME. +If it is set the fuction returns a +pointer to a 21-character string of the form: +.Bd -literal -offset indent +2021-11-01 22:52:37\en\e0 +.Ed +.Pp All the fields have constant width. .Pp The -- 2.37.1