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/lispref | |
| 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/lispref')
| -rw-r--r-- | doc/lispref/os.texi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index 0b9dd1c9cc3..43ca9ede00b 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi | |||
| @@ -1423,7 +1423,8 @@ The year, an integer typically greater than 1900. | |||
| 1423 | The day of week, as an integer between 0 and 6, where 0 stands for | 1423 | The day of week, as an integer between 0 and 6, where 0 stands for |
| 1424 | Sunday. | 1424 | Sunday. |
| 1425 | @item dst | 1425 | @item dst |
| 1426 | @code{t} if daylight saving time is effect, otherwise @code{nil}. | 1426 | @code{t} if daylight saving time is effect, @code{nil} if it is not |
| 1427 | in effect, and @minus{}1 if this information is not available. | ||
| 1427 | @item utcoff | 1428 | @item utcoff |
| 1428 | An integer indicating the Universal Time offset in seconds, i.e., the number of | 1429 | An integer indicating the Universal Time offset in seconds, i.e., the number of |
| 1429 | seconds east of Greenwich. | 1430 | seconds east of Greenwich. |