From: Paul Eggert Date: Thu, 16 Dec 2021 17:40:21 +0000 (-0800) Subject: Fix encode-time doc string X-Git-Tag: emacs-29.0.90~3591^2~12 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=34e3ad5ae449f4801af09d1df89d57350d0dc579;p=emacs.git Fix encode-time doc string * src/timefns.c (Fencode_time): Fix incorrect doc string that talks about FORM (which doesn’t exist) by copying wording from the manual instead. --- diff --git a/src/timefns.c b/src/timefns.c index a9921cdc108..0c218ba6ef2 100644 --- a/src/timefns.c +++ b/src/timefns.c @@ -1651,12 +1651,11 @@ saving flag to be guessed. As an obsolescent calling convention, if this function is called with 6 or more arguments, the first 6 arguments are SECOND, MINUTE, HOUR, -DAY, MONTH, and YEAR, and specify the components of a decoded time, -where DST assumed to be -1 and FORM is omitted. If there are more -than 6 arguments the *last* argument is used as ZONE and any other -extra arguments are ignored, so that (apply #\\='encode-time -(decode-time ...)) works. In this obsolescent convention, DST and -ZONE default to -1 and nil respectively. +DAY, MONTH, and YEAR, and specify the components of a decoded time. +If there are more than 6 arguments the *last* argument is used as ZONE +and any other extra arguments are ignored, so that (apply +#\\='encode-time (decode-time ...)) works. In this obsolescent +convention, DST and ZONE default to -1 and nil respectively. Years before 1970 are not guaranteed to work. On some systems, year values as low as 1901 do work.