changeset 11476:7917226c3ea9

(Fencode_time): Don't treat years < 100 as special.
author Richard M. Stallman <rms@gnu.org>
date Tue, 18 Apr 1995 03:31:38 +0000
parents 64aa0d436a80
children 5a52cf3e5f11
files src/editfns.c
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Tue Apr 18 03:17:12 1995 +0000
+++ b/src/editfns.c	Tue Apr 18 03:31:38 1995 +0000
@@ -742,8 +742,8 @@
 specified, it can be either a list (as from `current-time-zone') or an\n\
 integer (as from `decode-time'), and is applied without consideration for\n\
 daylight savings time.\n\
-If YEAR is less than 100, values in the range 0 through 69 are treated\n\
-as 2000 through 2069; values 70 through 99 are treated as 1970...1999.")
+Year numbers less than 100 are treated just like other year numbers.\n\
+If you them to stand for years above 1900, you must do that yourself.")
   (sec, min, hour, day, month, year, zone)
      Lisp_Object sec, min, hour, day, month, year, zone;
 {
@@ -759,13 +759,6 @@
   CHECK_NATNUM (year, 5);
 
   fullyear = XINT (year);
-  if (fullyear < 100)
-    {
-      if (fullyear < 70)		/* Epoch is 1970.  */
-	fullyear += 2000;
-      else
-	fullyear += 1900;
-    }
 
   /* Adjust incoming datespec to epoch = March 1, year 0.  */
   mon = XINT (month) - 1 + 10;