format_time

Синтаксис

native format_time(output[], len, const format[], time = -1);

Употреба

output
Buffer to copy formatted time string to
len
Maximum size of buffer
format
Format string
time
Unix timestamp, use -1 to use the current time

Описание

Retrieves the provided time using the specified format string.

Забележка

Uses the strftime C function. For a list of valid format parameters,
see: http://cplusplus.com/reference/clibrary/ctime/strftime.html
A common example for a format string would be: "%m/%d/%Y - %H:%M:%S"

Връщаща стойност

Number of cells written to buffer

Грешка

If the conversion process fails, an error will be thrown.