summaryrefslogtreecommitdiff
path: root/lisp/timezone.el
Commit message (Collapse)AuthorAge
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-01
|
* Merge from origin/emacs-28Eli Zaretskii2022-01-01
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-01
| |
* | Assume current-time-zone existsPaul Eggert2021-12-16
| | | | | | | | | | * lisp/timezone.el (timezone-time-zone-from-absolute): Simplify by assuming current-time-zone exists (true since Emacs 19.7 in 1993).
* | Simplify RFC 5322 time zone generationPaul Eggert2021-12-05
|/ | | | | | | | | | | | * lisp/mail/feedmail.el (feedmail-rfc822-time-zone) (feedmail-rfc822-date, feedmail-default-message-id-generator): * lisp/mail/mail-utils.el (mail-rfc822-time-zone, mail-rfc822-date): * lisp/timezone.el (timezone-make-arpa-date): Simplify by using format-time-string with %z. * lisp/mail/feedmail.el (feedmail-rfc822-time-zone): * lisp/mail/mail-utils.el (mail-rfc822-time-zone): Mark these should-have-been-internal functions obsolete.
* Update copyright year to 2021Paul Eggert2021-01-01
| | | | Run "TZ=UTC0 admin/update-copyright".
* ; * lisp/timezone.el: Fix typo in lexical-binding cookie.Stefan Kangas2020-12-08
| | | | Reported by Xu Chunyang <xuchunyang56@gmail.com>.
* Update copyright year to 2020Paul Eggert2020-01-01
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* Fix time-add rounding bugPaul Eggert2019-08-16
| | | | | | | | | | | | | | | | | | | | Without this fix, time arithmetic yielded results that were not mathematically accurate, even though the exact results were representable; for example, (time-add 0 1e-13) yielded a timestamp equal to 0 instead of to 1e-13. * lisp/timezone.el (timezone-time-from-absolute): Let time-add do its thing rather than using floating point internally, which has rounding errors. We now have bignums and so don’t need floating point to avoid overflow issues. * src/timefns.c (timeform_sub_ps_p): New function. (time_arith): If either argument is a float, represent the result exactly instead of discarding sub-ps info. * test/lisp/timezone-tests.el (timezone-tests-time-from-absolute): Don’t assume (HI LO US PS) timestamp format. * test/src/emacs-module-tests.el (mod-test-add-nanosecond/valid): Don’t assume that time-add discards sub-ns info. * test/src/timefns-tests.el (time-rounding-tests): Add regression test to detect time-add rounding bug.
* Use lexical-binding in timezone.el and add testsStefan Kangas2019-06-01
| | | | | * lisp/timezone.el: Use lexical-binding. * test/lisp/timezone-tests.el: New file.
* Remove Maintainer: when it duplicates Author:Paul Eggert2019-05-26
| | | | | | | The convention is that a file with Author: but not Maintainer: means the author is a maintainer, which makes it confusing when a file lists the same person as author and maintainer. Avoid the confusion by removing the duplicate Maintainer: line.
* Update copyright year to 2019Paul Eggert2019-01-01
| | | | Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
* Update copyright year to 2018Paul Eggert2018-01-01
| | | | Run admin/update-copyright.
* Prefer HTTPS to FTP and HTTP in documentationPaul Eggert2017-09-13
| | | | | | | | | | | | | Most of this change is to boilerplate commentary such as license URLs. This change was prompted by ftp://ftp.gnu.org's going-away party, planned for November. Change these FTP URLs to https://ftp.gnu.org instead. Make similar changes for URLs to other organizations moving away from FTP. Also, change HTTP to HTTPS for URLs to gnu.org and fsf.org when this works, as this will further help defend against man-in-the-middle attacks (for this part I omitted the MS-DOS and MS-Windows sources and the test tarballs to keep the workload down). HTTPS is not fully working to lists.gnu.org so I left those URLs alone for now.
* Update copyright year to 2017Paul Eggert2016-12-31
| | | | Run admin/update-copyright.
* Update copyright year to 2016Paul Eggert2016-01-01
| | | | Run admin/update-copyright.
* Update copyright year to 2015Paul Eggert2015-01-01
| | | | Run admin/update-copyright.
* Improve time stamp handling, and be more consistent about it.Paul Eggert2014-11-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements a suggestion made in: http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00587.html Among other things, this means timer.el no longer needs to autoload the time-date module. * doc/lispref/os.texi (Time of Day, Time Conversion, Time Parsing) (Processor Run Time, Time Calculations): Document the new behavior, plus be clearer about the old behavior. (Idle Timers): Take advantage of new functionality. * etc/NEWS: Document the changes. * lisp/allout-widgets.el (allout-elapsed-time-seconds): Doc fix. * lisp/arc-mode.el (archive-ar-summarize): * lisp/calendar/time-date.el (seconds-to-time, days-to-time, time-since): * lisp/emacs-lisp/timer.el (timer-relative-time, timer-event-handler) (run-at-time, with-timeout-suspend, with-timeout-unsuspend): * lisp/net/tramp.el (tramp-time-less-p, tramp-time-subtract): * lisp/proced.el (proced-time-lessp): * lisp/timezone.el (timezone-time-from-absolute): * lisp/type-break.el (type-break-schedule, type-break-time-sum): Simplify by using new functionality. * lisp/calendar/cal-dst.el (calendar-next-time-zone-transition): Do not return time values in obsolete and undocumented (HI . LO) format; use (HI LO) instead. * lisp/calendar/time-date.el (with-decoded-time-value): Treat 'nil' as current time. This is mostly for XEmacs. (encode-time-value, with-decoded-time-value): Obsolete. (time-add, time-subtract, time-less-p): Use no-op autoloads, for XEmacs. Define only if XEmacs, as they're now C builtins in Emacs. * lisp/ldefs-boot.el: Update to match new time-date.el * lisp/proced.el: Do not require time-date. * src/editfns.c (invalid_time): New function. Use it instead of 'error ("Invalid time specification")'. (time_add, time_subtract, time_arith, Ftime_add, Ftime_less_p) (decode_float_time, lisp_to_timespec, lisp_time_struct): New functions. (make_time_tail, make_time): Remove. All uses changed to use new functions or plain list4i. (disassemble_lisp_time): Return effective length if successful. Check that LOW is an integer, if it's combined with other components. (decode_time_components): Decode into struct lisp_time, not struct timespec, so that we can support a wide set of times regardless of whether time_t is signed. Decode plain numbers as seconds since the Epoch, and nil as the current time. (lisp_time_argument, lisp_seconds_argument, Ffloat_time): Reimplement in terms of new functions. (Fencode_time): Just use list2i. (syms_of_editfns): Add time-add, time-subtract, time-less-p. * src/keyboard.c (decode_timer): Don't allow the new formats (floating point or nil) in timers. * src/systime.h (LO_TIME_BITS): New constant. Use it everywhere in place of the magic number '16'. (struct lisp_time): New type. (decode_time_components): Use it. (lisp_to_timespec): New decl.
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-01
|
* Update copyright notices for 2013.Paul Eggert2013-01-01
|
* Remove * characters from the front of variable docstrings.Chong Yidong2012-04-09
|
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-05
|
* Refill some long/short copyright headers.Glenn Morris2011-01-26
|
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-24
|
* Nuke arch-tags.Glenn Morris2011-01-15
|
* Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-02
|
* Add 2010 to copyright years.Glenn Morris2010-01-13
|
* add ability to understand ISO8601 basic format as well as the extended one.Mark A. Hershberger2009-08-14
|
* Add 2009 to copyright years.Glenn Morris2009-01-05
|
* Fix typos in docstrings.Juanma Barranquero2008-11-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cus-edit.el (customize-apropos-options, custom-comment) (custom-comment-tag, custom-face-edit-attribute-tag): Fix typos in docstrings. (custom-buffer-done-kill): Remove * from defcustom docstring. (custom-file): Fix typo in doc of defcustom choice. * frame.el (display-visual-class): Fix typo in docstring. (initial-frame-alist, minibuffer-frame-alist, pop-up-frame-alist) (special-display-frame-alist, show-trailing-whitespace) (auto-hscroll-mode, blink-cursor-delay, blink-cursor-interval) (display-hourglass, hourglass-delay, cursor-in-non-selected-windows): Remove * from defcustom docstrings. * md4.el (md4-buffer): Fix typo in docstring. (md4, md4-64): Doc fixes. (md4-pack-int32): Reflow docstring. * paths.el (rmail-file-name): Remove * from defcustom docstring. (prune-directory-list, gnus-nntp-service): Fix typos in docstrings. * rect.el (open-rectangle): Reflow docstring. (spaces-string): Fix docstring typo. Use "?\s" instead of "? ". * select.el (x-get-cut-buffer): Fix typo in docstring. * timezone.el (timezone-zone-to-minute, timezone-time-from-absolute) (timezone-time-zone-from-absolute, timezone-leap-year-p): Fix typos in docstrings. * emacs-lisp/assoc.el (asort, aelement, aput, aget, amake): Fix typos in docstrings.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-06
|
* Fix up comment convention on the arch-tag lines.Stefan Monnier2008-04-10
|
* Add 2008 to copyright years.Glenn Morris2008-01-07
|
* Switch license to GPLv3 or later.Glenn Morris2007-07-25
|
* Add 2007 to copyright years.Glenn Morris2007-01-21
|
* Update copyright years.Glenn Morris2006-12-05
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-06
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-06
|
* (timezone-parse-date): Changed first regexpRichard M. Stallman2005-07-10
| | | | so it will not mistakenly match dates with no time zone.
* Update FSF's address.Lute Kamstra2005-07-04
|
* Replace `string-to-int' by `string-to-number'.Juanma Barranquero2005-05-16
|
* (timezone-parse-date): Fix style 8 to accept ISOAlex Schroeder2003-11-13
| | | | 8601 format (a capital T between the date and the time).
* Add arch taglinesMiles Bader2003-09-01
|
* Some fixes to follow coding conventions.Pavel Janík2001-07-16
|
* (timezone-parse-date): Doc fix. Fix regexps for (5)Dave Love2000-10-08
| | | | | without timezone and (8) with timezone to enforce some whitespace. Simplify code somewhat.
* (timezone-fix-time): Window against 69 for two-digit years. Deal withDave Love2000-01-28
| | | | three-digit years.
* (timezone-parse-date): Use < 69 not < 70 to distinguish 20YY from 19YY.Richard M. Stallman1999-09-06
|
* *** empty log message ***Richard M. Stallman1999-09-06
|
* Mode provide to end.Dave Love1999-08-24
| | | | | | (timezone-parse-date): Simplify somewhat. Assume 2-digit years <70 are 2000+. (timezone-parse-time): Simplify somewhat.
* (timezone-parse-date): Recognize new format used in internet cookies.Karl Heuer1999-05-06
|