diff options
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r-- | doc/script_commands.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 19f189f81..c99f27206 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3531,7 +3531,7 @@ Examples : --------------------------------------- -*gettimestr(<format string>, <max length>) +*gettimestr(<format string>, <max length>{, <timestamp>}) This function will return a string containing time data as specified by the format string. @@ -3545,6 +3545,7 @@ Max length is the maximum length of a time string to generate. The example given in Hercules sample scripts works like this: mes(gettimestr("%Y-%m/%d %H:%M:%S", 21)); + mes(gettimestr("%Y-%m/%d %H:%M:%S", 21, getcalendartime(0, 0))); This will print a full date and time like 'YYYY-MM/DD HH:MM:SS'. |