summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-12-16 09:40:21 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2021-12-16 11:17:24 -0800
commit34e3ad5ae449f4801af09d1df89d57350d0dc579 (patch)
tree374117e8244ad9290c75f8b2158ad07ec336f97c /src
parente726a00381e0f2d8dbfa52a10c82116a8352adf0 (diff)
downloademacs-34e3ad5ae449f4801af09d1df89d57350d0dc579.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/timefns.c11
1 files 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.