TSMAX
char buffer[TSMAX+1]; /* The buffer in which to write the date and time */
if(t && strftime(buffer, TSMAX, "%Y-%m-%d", t) != 0) {
if(t && strftime(buffer, TSMAX, "%H:%M:%S", t) != 0) {