changeset 25594:2d1ef4eb8297

1999-09-07 Edward M. Reingold <reingold@emr.cs.uiuc.edu> * diary-lib.el (list-diary-entries): Make sure two-digit years have leading zeros.
author Dave Love <fx@gnu.org>
date Tue, 07 Sep 1999 16:19:13 +0000
parents 9aecfcf3cb43
children 6671095a2649
files lisp/calendar/diary-lib.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calendar/diary-lib.el	Tue Sep 07 14:49:01 1999 +0000
+++ b/lisp/calendar/diary-lib.el	Tue Sep 07 16:19:13 1999 +0000
@@ -291,7 +291,7 @@
                            (concat
                             "\\*\\|0*" (int-to-string year)
                             (if abbreviated-calendar-year
-                                (concat "\\|" (int-to-string (% year 100)))
+                                (concat "\\|" (format "%02d" (% year 100)))
                               "")))
                           (regexp
                            (concat