]> git.eshelyaron.com Git - emacs.git/commit
Add support for dealing with decoded time structures
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 29 Jul 2019 12:15:03 +0000 (14:15 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 29 Jul 2019 12:22:38 +0000 (14:22 +0200)
commit6cfda69d72cb9debefc48d0d95e341d389e7303a
tree031f4d820ab5a0113f25a4d9096c0c5fde98499d
parente4f957fb0794b5616deb0abf792e11132c06e3a9
Add support for dealing with decoded time structures

* doc/lispref/os.texi (Time Conversion): Document the new
functions that work on decoded time.
(Time Calculations): Document new date/time functions.

* lisp/simple.el (decoded-time-second, decoded-time-minute)
(decoded-time-hour, decoded-time-day, decoded-time-month)
(decoded-time-year, decoded-time-weekday, decoded-time-dst)
(decoded-time-zone): New accessor functions for decoded time values.

* lisp/calendar/time-date.el (date-days-in-month)
(date-ordinal-to-time): New functions.
(decoded-time--alter-month, decoded-time--alter-day)
(decoded-time--alter-second, make-decoded-time): New functions
added to manipulate decoded time structures.

* src/timefns.c (Fdecode_time): Mention the new accessors.

* test/lisp/calendar/time-date-tests.el: New file to test the
decoded time functions and the other new functions.
doc/lispref/os.texi
etc/NEWS
lisp/calendar/time-date.el
lisp/simple.el
src/timefns.c
test/lisp/calendar/time-date-tests.el [new file with mode: 0644]