Commit graph

55 commits

Author SHA1 Message Date
Paul Eggert
0921dbc3ab Improve time stamp handling, and be more consistent about it.
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.
2014-11-16 20:41:22 -08:00
Paul Eggert
ba3189039a Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
Paul Eggert
ab422c4d68 Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
Chong Yidong
fb7ada5f94 Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
Glenn Morris
acaf905b11 Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
Glenn Morris
95df8112a0 Refill some long/short copyright headers. 2011-01-26 00:36:39 -08:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Glenn Morris
0d9f702fd0 Nuke arch-tags. 2011-01-15 15:16:57 -08:00
Glenn Morris
5df4f04cd3 Add 2011 to FSF/AIST copyright years. 2011-01-02 15:50:46 -08:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Mark A. Hershberger
b6377f1dc3 add ability to understand ISO8601 basic format as well as the extended one. 2009-08-14 18:18:39 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Juanma Barranquero
6cda144ffe Fix typos in docstrings.
* 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.
2008-11-01 01:24:33 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Stefan Monnier
cbee283dd7 Fix up comment convention on the arch-tag lines. 2008-04-10 14:10:46 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Glenn Morris
c90f275771 Update copyright years. 2006-12-05 07:06:08 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Richard M. Stallman
f44c13705f (timezone-parse-date): Changed first regexp
so it will not mistakenly match dates with no time zone.
2005-07-10 17:19:28 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Juanma Barranquero
027a4b6b3f Replace string-to-int' by string-to-number'. 2005-05-16 11:34:49 +00:00
Alex Schroeder
a996695f93 (timezone-parse-date): Fix style 8 to accept ISO
8601 format (a capital T between the date and the time).
2003-11-13 18:20:08 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Dave Love
ca87e9606a (timezone-parse-date): Doc fix. Fix regexps for (5)
without timezone and (8) with timezone to enforce some whitespace.
Simplify code somewhat.
2000-10-08 16:26:04 +00:00
Dave Love
d1912872e7 (timezone-fix-time): Window against 69 for two-digit years. Deal with
three-digit years.
2000-01-28 23:44:23 +00:00
Richard M. Stallman
162100b507 (timezone-parse-date): Use < 69 not < 70 to distinguish 20YY from 19YY. 1999-09-06 22:15:43 +00:00
Richard M. Stallman
8601c0dadc *** empty log message *** 1999-09-06 03:38:35 +00:00
Dave Love
64606d0779 Mode provide to end.
(timezone-parse-date): Simplify somewhat.  Assume 2-digit years <70 are
2000+.
(timezone-parse-time): Simplify somewhat.
1999-08-24 16:43:44 +00:00
Karl Heuer
b20bb856de (timezone-parse-date): Recognize new format used in internet cookies. 1999-05-06 21:26:34 +00:00
Richard M. Stallman
9dafdfe285 (timezone-parse-date): Corrected regexp for
style (5) date format so that tenths of seconds are optional.
1999-04-06 18:50:08 +00:00
Dave Love
a184d9bf2f (timezone-make-date-sortable, timezone-make-date-arpa-standard): Doc fix. 1999-02-12 14:57:05 +00:00
Richard M. Stallman
43776ca0c9 (timezone-parse-date): Handle additional style (9). 1997-08-06 17:45:55 +00:00
Richard M. Stallman
bcabbf77d3 (timezone-parse-date): Match forms 1 and 2 first. 1997-05-03 05:22:46 +00:00
Richard M. Stallman
dd713b759c (timezone-parse-date): Treat unknown month name
like any other unrecognized format.
1997-01-27 05:23:31 +00:00
Richard M. Stallman
f8f5c5f444 (timezone-parse-date): Handle 1-digit year. 1997-01-20 23:23:17 +00:00
Paul Eggert
db853edc0b (timezone-time-from-absolute): Fix off-by-one
error in current-time-origin.
1996-10-28 03:55:59 +00:00
Karl Heuer
9d02faa7aa (timezone-parse-date): Fix previous change. 1996-07-08 00:08:49 +00:00
Miles Bader
ac4c237c27 (timezone-parse-date): Handle ISO 8601 dates, so rmailsort does the right
thing with them.
1996-07-07 01:59:20 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Richard M. Stallman
be01074898 Comment change. 1995-10-30 17:35:01 +00:00
Richard M. Stallman
f457383941 (timezone-parse-date): Ignore text properties. 1995-07-07 13:25:47 +00:00
Richard M. Stallman
13d76d1ca5 (timezone-fix-time): For year values < 50, add 2000. 1994-12-26 01:24:38 +00:00
Richard M. Stallman
2f9a1ee283 (timezone-parse-date): Handle two new formats (6 and 7). 1994-11-16 22:21:39 +00:00
Richard M. Stallman
dbc6c26a56 (timezone-world-timezones): Add "UT" -> +000. 1994-11-01 04:21:32 +00:00
Richard M. Stallman
8c54a3ce68 Add keywords. 1994-10-13 03:55:22 +00:00
Richard M. Stallman
6b77e539be (timezone-parse-date): Handle new style 22-AUG-1993. 1993-10-09 03:46:09 +00:00