buf
A pointer to the character string to convert.
format
A pointer to the string that defines how the input string is
converted.
timeptr
A pointer to the local time structure. The tm structure is
defined in the <time.h> header file.