From bug-octave-request at bevo dot che dot wisc dot edu Mon Jul 31 06:35:27 2000 Subject: Re: date mentioned in save-file From: "Stef Pillaert (KAHO)" To: "John W. Eaton" Cc: Date: Mon, 31 Jul 2000 13:29:40 +0200 [Sorry for the late reply...Holidays (unfortunately over now...)] ----- Original Message ----- From: John W. Eaton To: Stef Pillaert Cc: Sent: Monday, June 26, 2000 8:45 PM Subject: date mentioned in save-file > On 15-Jun-2000, Stef Pillaert wrote: > > | To: bug-octave at bevo dot che dot wisc dot edu > | > | Subject: date mentioned in save-file > | -------- > | Bug report for Octave 2.1.30 configured for %OCTAVE_CONF_CANONICAL_HOST_TYPE% > | > | Description: > | ----------- > | > | Don't know wether this is an octave-bug. Probably it has more to do with the system where octave runs... > | When I save a file, there is a date mentioned in the file. This date is however not the local time on the machine > | (well, it isn't the time I get when using ctime(time)) > | > | Repeat-By: > | --------- > | > | octave:8> ctime(time) > | ans = Thu Jun 15 14:18:00 2000 > | > | octave:9> save - * > | # Created by Octave 2.1.30, Thu Jun 15 12:18:15 2000 > > Currently, Octave uses the equivalent of > > asctime (gmtime (time ())) > > to produce the time string. > > I can see that this might be a problem. Perhaps I should just add > `CUT' to the time string? Something like > > # Created by Octave 2.1.30, Thu Jun 15 12:18:15 2000 CUT > > instead? What do you think? > > jwe More clear, of course. But it would be even more clear (to me) if it were possible that the result of ctime(time) would be used (maybe by setting some variable or so...). I'm very sorry that I can't help by solving this problem myself, unfortunately my programming skills are a bit inadequate... Stef. ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------