FreeBSD/contrib/ntp/libntp/humandate.c
/*
 * humantime() -- like humanlogtime() but without date, and with the
 *		  time to display given as an argument.
 */
- like humanlogtime() but without date, and with the
time to display given as an argument.
- like humanlogtime () but without date and with the time to display given as an argument .
const char *
humantime(
	time_t cursec
	)
{
	char *		bp;
	struct tm *	tm;
	tm = localtime(&cursec);
	if (!tm)
		return "--:--:--";
	LIB_GETBUF(bp);
	snprintf(bp, LIB_BUFLENGTH, "%02d:%02d:%02d",
		 tm->tm_hour, tm->tm_min, tm->tm_sec);
	return bp;
}
const char * humantime ( time_t cursec ) { char * bp ; struct tm * tm ; tm = localtime ( & cursec ) ; if ( ! tm ) return " " ; LIB_GETBUF ( bp ) ; snprintf ( bp , LIB_BUFLENGTH , " " , tm -> tm_hour , tm -> tm_min , tm -> tm_sec ) ; return bp ; }
humantime() -- like humanlogtime() but without date, and with the
                time to display given as an argument.
humantime () -- like humanlogtime () but without date and with the time to display given as an argument .