cpp/chrono/c/strftime

Converts the date and time information from a given calendar time to a null-terminated multibyte character string  according to format string. Up to bytes are written.

Return value
The number of bytes written into the character array pointed to by not including the terminating  on success. If was reached before the entire string could be stored,  is returned and the contents are indeterminate.