changeset 11710:0652683b14e6

(Fencode_time): Rename arg from min to minute. (Fformat): Allow 30 characters in the printed version of integers and floats.
author Richard M. Stallman <rms@gnu.org>
date Fri, 05 May 1995 22:54:04 +0000
parents 03f977d9a240
children b7b7ce1f0908
files src/editfns.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Fri May 05 22:31:11 1995 +0000
+++ b/src/editfns.c	Fri May 05 22:54:04 1995 +0000
@@ -736,7 +736,7 @@
 }
 
 DEFUN ("encode-time", Fencode_time, Sencode_time, 6, 7, 0,
-  "Convert SEC, MIN, HOUR, DAY, MONTH, YEAR and ZONE to internal time.\n\
+  "Convert SEC, MINUTE, HOUR, DAY, MONTH, YEAR and ZONE to internal time.\n\
 This is the reverse operation of `decode-time', which see.  ZONE defaults\n\
 to the current time zone and daylight savings time if not specified; if\n\
 specified, it can be either a list (as from `current-time-zone') or an\n\
@@ -744,15 +744,15 @@
 daylight savings time.\n\
 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;
+  (sec, minute, hour, day, month, year, zone)
+     Lisp_Object sec, minute, hour, day, month, year, zone;
 {
   time_t time;
   int fullyear, mon, days, seconds, tz = 0;
   static char days_per_month[11] = { 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 31 };
 
   CHECK_NATNUM (sec, 0);
-  CHECK_NATNUM (min, 1);
+  CHECK_NATNUM (minute, 1);
   CHECK_NATNUM (hour, 2);
   CHECK_NATNUM (day, 3);
   CHECK_NATNUM (month, 4);
@@ -782,7 +782,7 @@
   days += 59;				/* March 1 is 59th day.  */
   days -= 719527;			/* 1970 years = 719527 days */
 
-  seconds = XINT (sec) + 60 * XINT (min) + 3600 * XINT (hour);
+  seconds = XINT (sec) + 60 * XINT (minute) + 3600 * XINT (hour);
 
   if (sizeof (time_t) == 4
       && ((days+(seconds/86400) > 24854) || (days+(seconds/86400) < -24854)))
@@ -1827,14 +1827,14 @@
 	    if (*format == 'e' || *format == 'f' || *format == 'g')
 	      args[n] = Ffloat (args[n]);
 #endif
-	    total += 10;
+	    total += 30;
 	  }
 #ifdef LISP_FLOAT_TYPE
 	else if (FLOATP (args[n]) && *format != 's')
 	  {
 	    if (! (*format == 'e' || *format == 'f' || *format == 'g'))
 	      args[n] = Ftruncate (args[n]);
-	    total += 20;
+	    total += 30;
 	  }
 #endif
 	else