FreeBSD/contrib/ntp/libntp/ntp_calendar.c
int
ntpcal_daysplit_to_tm(
	struct tm	   *utm,
	const ntpcal_split *ds ,
	int32_t		    dof
	)
{
	dof += ntpcal_daysec_to_tm(utm, ds->lo);

	return ntpcal_rd_to_tm(utm, ds->hi + dof);
}
/*
 *---------------------------------------------------------------------
 * take a split representation for day/second-of-day and day offset
 * and convert it to a 'struct tm'. The seconds will be normalised
 * into the range of a day, and the day will be adjusted accordingly.
 *
 * returns 1 if the result is in a leap year and zero if in a regular
 * year.
 *---------------------------------------------------------------------
 */
take a split representation for day/second-of-day and day offset
and convert it to a 'struct tm'. The seconds will be normalised
into the range of a day, and the day will be adjusted accordingly.

returns 1 if the result is in a leap year and zero if in a regular
year.
take a split representation for day / second - of - day and day offset and convert it to a ' struct tm ' . The seconds will be normalised into the range of a day and the day will be adjusted accordingly . returns 1 if the result is in a leap year and zero if in a regular year .
int
ntpcal_daysplit_to_tm(
	struct tm	   *utm,
	const ntpcal_split *ds ,
	int32_t		    dof
	)
{
	dof += ntpcal_daysec_to_tm(utm, ds->lo);
	return ntpcal_rd_to_tm(utm, ds->hi + dof);
}
int ntpcal_daysplit_to_tm ( struct tm * utm , const ntpcal_split * ds , int32_t dof ) { dof += ntpcal_daysec_to_tm ( utm , ds -> lo ) ; return ntpcal_rd_to_tm ( utm , ds -> hi + dof ) ; }
take a split representation for day/second-of-day and day offset
 and convert it to a 'struct tm'.
take a split representation for day / second - of - day and day offset and convert it to a ' struct tm ' .