From 34e3ad5ae449f4801af09d1df89d57350d0dc579 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 16 Dec 2021 09:40:21 -0800 Subject: Fix encode-time doc string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * src/timefns.c (Fencode_time): Fix incorrect doc string that talks about FORM (which doesn’t exist) by copying wording from the manual instead. --- src/timefns.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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. -- cgit v1.2.3-70-g09d2