Signature
native format_time(output[], len, const format[], time = -1);
Description
Retrieves the provided time using the specified format string.
Notes
-
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"
Parameters
- 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
Returns
Number of cells written to buffer
Errors
- If the conversion process fails, an error will be thrown.