aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPaul Eggert2012-05-03 13:04:29 -0700
committerPaul Eggert2012-05-03 13:04:29 -0700
commitab0fa4e4ba0b2b93a9ef007842523d8d5f9eb758 (patch)
tree9adfb1831b29c6f4d68b5d1ea6de54f05617bc6a /etc
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 'etc')
-rw-r--r--etc/ChangeLog4
-rw-r--r--etc/NEWS6
2 files changed, 10 insertions, 0 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog
index f34e5d6d688..2a6cd719220 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,7 @@
12012-05-03 Paul Eggert <eggert@cs.ucla.edu>
2
3 * NEWS: Do not limit current-time-string to years 1000..9999.
4
12012-04-27 Jambunathan K <kjambunathan@gmail.com> 52012-04-27 Jambunathan K <kjambunathan@gmail.com>
2 6
3 * org/OrgOdtStyles.xml (OrgDescriptionList): Modify style. With 7 * org/OrgOdtStyles.xml (OrgDescriptionList): Modify style. With
diff --git a/etc/NEWS b/etc/NEWS
index cd15273c3db..a9e4a7832ed 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -197,6 +197,12 @@ in the presence of quoting, such as file completion in shell buffers.
197 197
198*** New function `completion-table-subvert' to use an existing completion 198*** New function `completion-table-subvert' to use an existing completion
199table, but with a different prefix. 199table, but with a different prefix.
200
201** Time
202
203*** `current-time-string' no longer requires that its argument's year
204must be in the range 1000..9999. It now works with any year supported
205by the underlying C implementation.
200 206
201* Changes in Emacs 24.2 on non-free operating systems 207* Changes in Emacs 24.2 on non-free operating systems
202 208