diff options
| author | Paul Eggert | 2012-05-03 13:04:29 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-05-03 13:04:29 -0700 |
| commit | ab0fa4e4ba0b2b93a9ef007842523d8d5f9eb758 (patch) | |
| tree | 9adfb1831b29c6f4d68b5d1ea6de54f05617bc6a /doc/lispref | |
| parent | f7ae6719123ad5f4f505290621810318d9ee5484 (diff) | |
| download | emacs-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/lispref')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/os.texi | 13 |
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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-05-02 Chong Yidong <cyd@gnu.org> | 6 | 2012-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 |
| 1198 | This function returns the current time and date as a human-readable | 1198 | This function returns the current time and date as a human-readable |
| 1199 | string. The format of the string is unvarying; the number of | 1199 | string. The format does not vary for the initial part of the string, |
| 1200 | characters used for each part is always the same, so you can reliably | 1200 | which contains the day of week, month, day of month, and time of day |
| 1201 | use @code{substring} to extract pieces of it. You should count | 1201 | in that order: the number of characters used for these fields is |
| 1202 | always the same, so you can reliably | ||
| 1203 | use @code{substring} to extract them. You should count | ||
| 1202 | characters from the beginning of the string rather than from the end, | 1204 | characters from the beginning of the string rather than from the end, |
| 1203 | as additional information may some day be added at the end. | 1205 | as the year might not have exactly four digits, and additional |
| 1206 | information may some day be added at the end. | ||
| 1204 | 1207 | ||
| 1205 | The argument @var{time-value}, if given, specifies a time to format | 1208 | The 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} |
| 2302 | The urgency level. It can be @code{low}, @code{normal}, or @code{critical}. | 2305 | The urgency level. It can be @code{low}, @code{normal}, or @code{critical}. |
| 2303 | 2306 | ||
| 2304 | @item :action-items | 2307 | @item :action-items |
| 2305 | When this keyword is given, the @var{title} string of the actions is | 2308 | When this keyword is given, the @var{title} string of the actions is |
| 2306 | interpreted as icon name. | 2309 | interpreted as icon name. |
| 2307 | 2310 | ||