From bug-octave-request at bevo dot che dot wisc dot edu Tue Aug 1 12:37:38 2000 Subject: Re: date mentioned in save-file From: "John W. Eaton" To: "Stef Pillaert (KAHO)" Cc: Date: Tue, 1 Aug 2000 12:38:13 -0500 (CDT) On 31-Jul-2000, Stef Pillaert (KAHO) wrote: | > 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... OK, in the devalopment sources, I've introduced the following variable: - Built-in Variable: save_header_format_string This variable specifies the the format string for the comment line that is written at the beginning of text-format data files saved by Octave. The format string is passed to `strftime' and should begin with the character `#' and contain no newline characters. If the value of `save_header_format_string' is the empty string, the header comment is omitted from text-format data files. The default value is "# Created by Octave VERSION, %a %b %d %H:%M:%S %Y %Z " See also: strftime.. 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 -----------------------------------------------------------------------