Gettimestr

From Hercules Wiki
Revision as of 03:36, 9 June 2013 by Via (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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".

More Example