libntp/ntp_calendar.c
/*
 *---------------------------------------------------------------------
 * Take a value of seconds since midnight and split it into hhmmss in a
 * 'struct calendar'.
 *---------------------------------------------------------------------
 */
Take a value of seconds since midnight and split it into hhmmss in a
'struct calendar'.
Take a value of seconds since midnight and split it into hhmmss in a ' struct calendar ' .
int32_t
ntpcal_daysec_to_date(
	struct calendar *jd,
	int32_t		sec
	)
{
	int32_t days;
	int   ts[3];
	days = priv_timesplit(ts, sec);
	jd->hour   = (uint8_t)ts[0];
	jd->minute = (uint8_t)ts[1];
	jd->second = (uint8_t)ts[2];
	return days;
}
int32_t ntpcal_daysec_to_date ( struct calendar * jd , int32_t sec ) { int32_t days ; int ts [ 3 ] ; days = priv_timesplit ( ts , sec ) ; jd -> hour = ( uint8_t ) ts [ 0 ] ; jd -> minute = ( uint8_t ) ts [ 1 ] ; jd -> second = ( uint8_t ) ts [ 2 ] ; return days ; }
Take a value of seconds since midnight and split it into hhmmss in a
 'struct calendar'.
Take a value of seconds since midnight and split it into hhmmss in a ' struct calendar ' .