1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-13 23:10:26 -08:00
emacs/test/src
Paul Eggert 37257d6aca More-compatible subsecond calendrical timestamps
Instead of appending a subseconds member to the result of
‘decode-time’, this keeps the format unchanged unless you give
a new optional argument to ‘decode-time’.  Also, the augmented
format now puts the subsecond info in the SECONDS element, so
the total number of elements is unchanged; this is more
compatible with code that expects the traditional 9 elements,
such as ‘(pcase decoded-time (`(,SEC ,MIN ,HOUR ,DAY ,MON
,YEAR ,DOW ,DST ,ZONE) ...) ...)’.
* doc/lispref/os.texi, doc/misc/emacs-mime.texi, etc/NEWS:
* lisp/net/soap-client.el (soap-decode-date-time):
* lisp/simple.el (decoded-time):
Document the new behavior.
* lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
* lisp/calendar/iso8601.el (iso8601-parse)
(iso8601-parse-time, iso8601-parse-duration)
(iso8601--decoded-time):
* lisp/calendar/parse-time.el (parse-time-string):
* lisp/calendar/time-date.el (decoded-time-add)
(decoded-time--alter-second):
* lisp/org/org.el (org-parse-time-string):
* lisp/simple.el (decoded-time):
* src/timefns.c (Fdecode_time, Fencode_time):
* test/lisp/calendar/icalendar-tests.el:
(icalendar--decode-isodatetime):
* test/lisp/calendar/iso8601-tests.el (test-iso8601-date-years)
(test-iso8601-date-dates, test-iso8601-date-obsolete)
(test-iso8601-date-weeks, test-iso8601-date-ordinals)
(test-iso8601-time, test-iso8601-combined)
(test-iso8601-duration, test-iso8601-intervals)
(standard-test-dates, standard-test-time-of-day-fractions)
(standard-test-time-of-day-beginning-of-day)
(standard-test-time-of-day-utc)
(standard-test-time-of-day-zone)
(standard-test-date-and-time-of-day, standard-test-interval):
* test/lisp/calendar/parse-time-tests.el (parse-time-tests):
* test/src/timefns-tests.el (format-time-string-with-zone)
(encode-time-dst-numeric-zone):
Revert recent changes that added a SUBSECS member to
calendrical timestamps, since that component is no longer
present (the info, if any, is now in the SECONDS member).
* lisp/calendar/time-date.el (decoded-time-add)
(decoded-time--alter-second):
Support fractional seconds in the new form.  Simplify.
* src/timefns.c (Fdecode_time): Support new arg FORM.
(Fencode_time): Support subsecond resolution.
* test/src/timefns-tests.el (format-time-string-with-zone)
(decode-then-encode-time): Test subsecond calendrical timestamps.
2019-08-16 23:25:07 -07:00
..
regex-resources
alloc-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
buffer-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
callint-tests.el Update more copyright years 2018-12-31 18:47:22 -08:00
callproc-tests.el Minor change in a comment 2019-04-15 19:11:16 +03:00
casefiddle-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
charset-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
chartab-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
cmds-tests.el forward-line now works with bignums 2019-01-27 15:52:06 -08:00
coding-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
data-tests.el Merge from origin/emacs-26 2019-02-15 13:25:30 -08:00
decompress-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
doc-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
editfns-tests.el Support "%x" etc. formats on more floats 2019-07-23 01:46:41 -07:00
emacs-module-tests.el Fix time-add rounding bug 2019-08-16 16:27:27 -07:00
eval-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
fileio-tests.el Fix recently-introduced file-name-absolute-p typo 2019-07-26 09:48:57 -07:00
floatfns-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
fns-tests.el Fix crash if user test munges hash table 2019-07-20 20:13:46 -07:00
font-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
inotify-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
json-tests.el * test/src/json-tests.el (json-serialize/object): Fix spacing. 2019-06-29 07:41:52 +02:00
keyboard-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
keymap-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
lcms-tests.el Go back to "Maintainer: emacs-devel@gnu.org" 2019-05-25 14:25:18 -07:00
lread-tests.el Make warning about unescaped character literals more helpful. 2019-04-19 19:19:35 +02:00
marker-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
minibuf-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
print-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
process-tests.el Merge from origin/emacs-26 2019-07-30 21:42:34 -07:00
regex-emacs-tests.el Correct regexp matching of raw bytes 2019-06-28 17:30:18 +02:00
syntax-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
textprop-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
thread-tests.el Remove failing test erroneously added in backport 2019-06-14 09:40:40 +03:00
timefns-tests.el More-compatible subsecond calendrical timestamps 2019-08-16 23:25:07 -07:00
undo-tests.el Suppress interactive-only warnings in undo-tests.el (Bug#36565) 2019-08-08 08:26:31 -04:00
xml-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00