Navigation

Operators and Keywords

Function List:

C++ API

: val = history_timestamp_format_string ()
: old_val = history_timestamp_format_string (new_val)
: history_timestamp_format_string (new_val, "local")

Query or set the internal variable that specifies the format string for the comment line that is written to the history file when Octave exits.

The format string is passed to strftime. The default value is

"# Octave VERSION, %a %b %d %H:%M:%S %Y %Z <USER@HOST>"

When called from inside a function with the "local" option, the variable is changed locally for the function and any subroutines it calls. The original variable value is restored when exiting the function.

See also: strftime, history_file, history_size, history_save.

Package: octave