diff options
| author | Paul Eggert | 2016-04-12 09:19:11 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-04-12 09:19:38 -0700 |
| commit | fdb1ba144ca61185e6457f092f38f59dd9bbe6a0 (patch) | |
| tree | 5048d1fbb946faf0b6059e4d4375bb514b3bfa74 /etc | |
| parent | 7c2c2196fd4be0b656bdf0e0b68f3d7c4a5eca08 (diff) | |
| download | emacs-fdb1ba144ca61185e6457f092f38f59dd9bbe6a0.tar.gz emacs-fdb1ba144ca61185e6457f092f38f59dd9bbe6a0.zip | |
Support OFFSET and (OFFSET ABBR) time zone rules
This simplifies Gnus and VC time zone support, by letting them
feed the output of ‘current-time-zone’ and ‘decode time’ to
primitives that accept time zone arguments.
* doc/lispref/os.texi (Time Zone Rules, Time Conversion):
* etc/NEWS:
* lisp/gnus/message.el (message-insert-formatted-citation-line):
* lisp/org/org.el (org-timestamp-format):
* src/editfns.c (Fformat_time_string, Fdecode_time):
(Fcurrent_time_string, Fcurrent_time_zone, Fset_time_zone_rule):
Document new behavior.
* lisp/gnus/gmm-utils.el (gmm-format-time-string):
* lisp/vc/add-log.el (add-log-iso8601-time-zone):
Mark as obsolete, as it is now just an alias or narrow wrapper
around format-time-string.
* src/editfns.c (tzlookup): Also support integer OFFSET and
list (OFFSET ABBR) as time zone rules.
(Fencode_time): No longer need a special case for a cons ZONE.
(Fcurrent_time_zone): If the time zone string is missing, compute
it the same way the other new code does.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -228,6 +228,14 @@ two objects are 'eq' ('eql'), then the result of 'sxhash-eq' | |||
| 228 | consistency with the new functions. For compatibility, 'sxhash' | 228 | consistency with the new functions. For compatibility, 'sxhash' |
| 229 | remains as an alias to 'sxhash-equal'. | 229 | remains as an alias to 'sxhash-equal'. |
| 230 | 230 | ||
| 231 | +++ | ||
| 232 | ** Time conversion functions that accept a time zone rule argument now | ||
| 233 | allow it to be OFFSET or a list (OFFSET ABBR), where the integer | ||
| 234 | OFFSET is a count of seconds east of Universal Time, and the string | ||
| 235 | ABBR is a time zone abbreviation. The affected functions are | ||
| 236 | 'current-time-string', 'current-time-zone', 'decode-time', | ||
| 237 | 'format-time-string', and 'set-time-zone-rule'. | ||
| 238 | |||
| 231 | 239 | ||
| 232 | * Changes in Emacs 25.2 on Non-Free Operating Systems | 240 | * Changes in Emacs 25.2 on Non-Free Operating Systems |
| 233 | 241 | ||