FormatTime Function

Produces a date and/or time string value for a timestamp.

See this URL for valid parameters: http://cplusplus.com/reference/clibrary/ctime/strftime.html

void FormatTime(char[] buffer, int maxlength, const char[] format, int stamp)

Parameters

char[] buffer

Destination string buffer.

int maxlength

Maximum length of output string buffer.

const char[] format

Formatting rules (passing NULL_STRING will use the rules defined in sm_datetime_format).

int stamp

Optional time stamp.

Errors

Buffer too small or invalid time format.