changeset 25553:3af0f2f6145c

(vc-annotate-display): Treat 2-digit years under 70 as 20YY.
author Richard M. Stallman <rms@gnu.org>
date Mon, 06 Sep 1999 03:46:33 +0000
parents fbfe59033eaf
children e52ba2d9f6d7
files lisp/vc.el
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc.el	Mon Sep 06 03:38:35 1999 +0000
+++ b/lisp/vc.el	Mon Sep 06 03:46:33 1999 +0000
@@ -5,7 +5,7 @@
 ;; Author:     Eric S. Raymond <esr@snark.thyrsus.com>
 ;; Maintainer: Andre Spiegel <spiegel@inf.fu-berlin.de>
 
-;; $Id: vc.el,v 1.251 1999/08/27 07:59:22 schwab Exp eliz $
+;; $Id: vc.el,v 1.252 1999/09/02 12:50:28 eliz Exp rms $
 
 ;; This file is part of GNU Emacs.
 
@@ -2474,7 +2474,12 @@
 	     (day (string-to-number (match-string 1)))
              (month (cdr (assoc (match-string 2) local-month-numbers)))
 	     (year-tmp (string-to-number (match-string 3)))
-	     (year (+ (if (> 100 year-tmp) 1900 0) year-tmp)) ; Possible millenium problem
+	     ;; Years 0..69 are 2000..2069.
+	     ;; Years 70..99 are 1970..1999.
+	     (year (+ (cond ((> 70 year-tmp) 2000)
+			    ((> 100 year-tmp) 1900)
+			    (t 0))
+		      year-tmp))
 	     (high (- (car (current-time))
 		      (car (encode-time 0 0 0 day month year))))
 	     (color (cond ((vc-annotate-compcar high (cond (color-map)