diff options
| author | Paul Eggert | 2018-09-21 14:24:42 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-09-21 14:25:19 -0700 |
| commit | 0bec064454adac2bdff04a11bbdfaa79aa4ce052 (patch) | |
| tree | ab85b4e46d2ab44dd3d02b85a5a540470842e470 /doc/misc | |
| parent | 167274d44f1ccaee65a5b68e15c3ed79a53447d1 (diff) | |
| download | emacs-0bec064454adac2bdff04a11bbdfaa79aa4ce052.tar.gz emacs-0bec064454adac2bdff04a11bbdfaa79aa4ce052.zip | |
Fix ambiguity in nil DST flag
Formerly nil meant both that DST was not in effect and that
the DST flag was unknown, and different functions interpreted
the flag differently. Now the meaning is consistently nil for
DST not in effect, and -1 for DST flag not known.
* doc/lispref/os.texi (Time Conversion): The DST slot is
now three-valued, not two-.
* doc/misc/emacs-mime.texi (time-date): Adjust to new behavior.
* etc/NEWS: Mention this.
* lisp/calendar/parse-time.el (parse-time-string):
* src/editfns.c (Fdecode_time):
Return -1 for unknown DST flag.
* test/lisp/calendar/parse-time-tests.el (parse-time-tests):
Adjust tests to match new behavior, and add a new
test for nil vs -1.
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/emacs-mime.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/misc/emacs-mime.texi b/doc/misc/emacs-mime.texi index b71cc3755bf..45f37fb8557 100644 --- a/doc/misc/emacs-mime.texi +++ b/doc/misc/emacs-mime.texi | |||
| @@ -1535,7 +1535,7 @@ Here's a bunch of time/date/second/day examples: | |||
| 1535 | 1535 | ||
| 1536 | @example | 1536 | @example |
| 1537 | (parse-time-string "Sat Sep 12 12:21:54 1998 +0200") | 1537 | (parse-time-string "Sat Sep 12 12:21:54 1998 +0200") |
| 1538 | @result{} (54 21 12 12 9 1998 6 nil 7200) | 1538 | @result{} (54 21 12 12 9 1998 6 -1 7200) |
| 1539 | 1539 | ||
| 1540 | (date-to-time "Sat Sep 12 12:21:54 1998 +0200") | 1540 | (date-to-time "Sat Sep 12 12:21:54 1998 +0200") |
| 1541 | @result{} (13818 19266) | 1541 | @result{} (13818 19266) |