Difference between revisions of "Gettimestr"
From Hercules Wiki
(Created page with "==Syntax== *'''gettimestr'''(<"format">, <max length>); ==Description== This function returns the current system time and date as a string, according to given ''format'', whi...") |
Revision as of 03:36, 9 June 2013
Syntax
- gettimestr(<"format">, <max length>);
Description
This function returns the current system time and date as a string, according to given format, which has same syntax as the one of C library function strftime. The parameter max length specifies the maximum length of the string returned.
Examples
mes gettimestr("%Y-%m/%d %H:%M:%S",21);
Would print out the full current date and time, ex. "2010-10/30 07:48:37".