timeptr A pointer to a structure of type tm, which contains the broken- down time. The tm structure is defined in the <time.h> header file, and also shown in tm Structure in the description of localtime. buffer A pointer to a character array that is at least 26 bytes long. This array is used to store the generated date-and-time string.