Mercurial > octave
diff liboctave/cmd-edit.cc @ 3260:cd454a6fa1a4
[project @ 1999-08-02 21:55:15 by jwe]
author | jwe |
---|---|
date | Mon, 02 Aug 1999 21:56:44 +0000 |
parents | 7aae2c3636a7 |
children | aaaa20d31a5f |
line wrap: on
line diff
--- a/liboctave/cmd-edit.cc Thu Jul 22 04:30:25 1999 +0000 +++ b/liboctave/cmd-edit.cc Mon Aug 02 21:56:44 1999 +0000 @@ -26,7 +26,6 @@ #include <cstdlib> #include <cstring> -#include <ctime> #include <string> @@ -42,6 +41,7 @@ #include "lo-error.h" #include "lo-utils.h" #include "oct-env.h" +#include "oct-time.h" command_editor *command_editor::instance = 0; @@ -786,9 +786,9 @@ case 'd': // Make the current time/date into a string. { - time_t now = time (0); + octave_time now; - temp = ctime (&now); + temp = now.ctime (); if (c == 't') {