Converts the specified date and time into a formatted string.
#include <time.h> size_t strftime ( char *s, size_t maxsize, const char *format, const struct tm *localtime);
(OUT) Points to the character array for the converted string.
(IN) Specifies the maximum number of characters that can be placed in the array.
(IN) Points to the format control string. See Remarks.
(IN) Points to the tm structure to convert.
If the number of characters to be placed into the array is less than the value specified by the maxsize parameter, the function returns the number of characters placed into the array pointed to by the s parameter (not including the null terminating character). Otherwise, it returns 0 and the contents of the array are unspecified.
The strftime function formats the time in the localtime parameter into the array pointed to by the s parameter according to the format parameter.
Local timezone information is used.
The format parameter string is a null-terminated string. It consists of zero or more directives and ordinary characters. A directive consists of a % character followed by a character that determines the substitution that is to take place. All ordinary characters are copied unchanged into the array. No more than the number of characters specified by the maxsize parameter are placed in the array.
The following conversion specifications are supported: