diff src/load-save.cc @ 3258:4964d5391acc

[project @ 1999-07-21 21:51:33 by jwe]
author jwe
date Wed, 21 Jul 1999 21:52:04 +0000
parents 98d0ee053ba4
children 7d80b56e0dc8
line wrap: on
line diff
--- a/src/load-save.cc	Fri Jul 16 16:24:17 1999 +0000
+++ b/src/load-save.cc	Wed Jul 21 21:52:04 1999 +0000
@@ -27,7 +27,6 @@
 #include <cfloat>
 #include <cstring>
 #include <cctype>
-#include <ctime>
 
 #include <string>
 
@@ -43,6 +42,7 @@
 #include "lo-mappers.h"
 #include "mach-info.h"
 #include "oct-env.h"
+#include "oct-time.h"
 #include "str-vec.h"
 
 #include "defun.h"
@@ -2450,9 +2450,8 @@
 
     case LS_ASCII:
       {
-	time_t now = time (0);
-
-	string time_string = asctime (gmtime (&now));
+	octave_gmtime now;
+	string time_string = now.asctime ();
 	time_string = time_string.substr (0, time_string.length () - 1);
 
 	os << "# Created by Octave " OCTAVE_VERSION ", "
@@ -2751,14 +2750,14 @@
 void
 symbols_of_load_save (void)
 {
-  DEFVAR (crash_dumps_octave_core, 1.0, 0, crash_dumps_octave_core,
+  DEFVAR (crash_dumps_octave_core, 1.0, crash_dumps_octave_core,
     "write octave-core file if Octave crashes or is killed by a signal");
 
-  DEFVAR (default_save_format, "ascii", 0, default_save_format,
+  DEFVAR (default_save_format, "ascii", default_save_format,
     "default format for files created with save, may be one of\n\
 \"binary\", \"text\", or \"mat-binary\"");
 
-  DEFVAR (save_precision, 15.0, 0, save_precision,
+  DEFVAR (save_precision, 15.0, save_precision,
     "number of significant figures kept by the ASCII save command");
 }