sprintf (buf, "%d:%02d:%02d %s %d, %d", parts->tm_hour, parts->tm_min, parts->tm_sec, months[parts->tm_mon], parts->tm_mday, 1900 + parts->tm_year);
strftime(buf, sizeof buf, "%k:%M:%S %b %d, %Y", parts); buf[sizeof(buf) - 1] = '\0';
Targ_FmtTime (time)    time_t    time;{    struct tm	  	*parts;    static char	  	buf[40];    static char	  	*months[] = {	"Jan", "Feb", "Mar", "Apr", "May", "Jun",	"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"    };    parts = localtime(&time);    sprintf (buf, "%d:%02d:%02d %s %d, %d",	     parts->tm_hour, parts->tm_min, parts->tm_sec,	     months[parts->tm_mon], parts->tm_mday, 1900 + parts->tm_year);    return(buf);}