From bug-octave-request at bevo dot che dot wisc dot edu Mon Jun 26 13:45:15 2000 Subject: date mentioned in save-file From: "John W. Eaton" To: Stef Pillaert Cc: bug-octave at bevo dot che dot wisc dot edu Date: Mon, 26 Jun 2000 13:45:16 -0500 (CDT) 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 ----------------------------------------------------------------------- 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 -----------------------------------------------------------------------