aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert2012-05-03 13:04:29 -0700
committerPaul Eggert2012-05-03 13:04:29 -0700
commitab0fa4e4ba0b2b93a9ef007842523d8d5f9eb758 (patch)
tree9adfb1831b29c6f4d68b5d1ea6de54f05617bc6a /doc
parentf7ae6719123ad5f4f505290621810318d9ee5484 (diff)
downloademacs-ab0fa4e4ba0b2b93a9ef007842523d8d5f9eb758.tar.gz
emacs-ab0fa4e4ba0b2b93a9ef007842523d8d5f9eb758.zip
Do not limit current-time-string to years 1000..9999.
* src/editfns.c (TM_YEAR_IN_ASCTIME_RANGE): Remove. (Fcurrent_time_string): Support any year that is supported by the underlying localtime representation. Don't use asctime, as it has undefined behavior for years outside the range -999..9999. * doc/lispref/os.texi (Time of Day): Do not limit current-time-string to years 1000..9999. * etc/NEWS: Do not limit current-time-string to years 1000..9999.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/os.texi13
2 files changed, 13 insertions, 5 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index c3eadfc8558..3be41afe975 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12012-05-03 Paul Eggert <eggert@cs.ucla.edu>
2
3 * os.texi (Time of Day): Do not limit current-time-string
4 to years 1000..9999.
5
12012-05-02 Chong Yidong <cyd@gnu.org> 62012-05-02 Chong Yidong <cyd@gnu.org>
2 7
3 * display.texi (Font Lookup): 8 * display.texi (Font Lookup):
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index d825a3f18c4..0fdb3e20694 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -1196,11 +1196,14 @@ sections.
1196 1196
1197@defun current-time-string &optional time-value 1197@defun current-time-string &optional time-value
1198This function returns the current time and date as a human-readable 1198This function returns the current time and date as a human-readable
1199string. The format of the string is unvarying; the number of 1199string. The format does not vary for the initial part of the string,
1200characters used for each part is always the same, so you can reliably 1200which contains the day of week, month, day of month, and time of day
1201use @code{substring} to extract pieces of it. You should count 1201in that order: the number of characters used for these fields is
1202always the same, so you can reliably
1203use @code{substring} to extract them. You should count
1202characters from the beginning of the string rather than from the end, 1204characters from the beginning of the string rather than from the end,
1203as additional information may some day be added at the end. 1205as the year might not have exactly four digits, and additional
1206information may some day be added at the end.
1204 1207
1205The argument @var{time-value}, if given, specifies a time to format 1208The argument @var{time-value}, if given, specifies a time to format
1206(represented as a list of integers), instead of the current time. 1209(represented as a list of integers), instead of the current time.
@@ -2301,7 +2304,7 @@ the notification never expires. Default value is -1.
2301@item :urgency @var{urgency} 2304@item :urgency @var{urgency}
2302The urgency level. It can be @code{low}, @code{normal}, or @code{critical}. 2305The urgency level. It can be @code{low}, @code{normal}, or @code{critical}.
2303 2306
2304@item :action-items 2307@item :action-items
2305When this keyword is given, the @var{title} string of the actions is 2308When this keyword is given, the @var{title} string of the actions is
2306interpreted as icon name. 2309interpreted as icon name.
2307 2310