FreeBSD/contrib/ntp/libntp/calyearstart.c
/*
 * caldaystart - get NTP time at midnight of the current day.
 */
get NTP time at midnight of the current day.
get NTP time at midnight of the current day .
u_int32
caldaystart(u_int32 ntptime, const time_t *pivot)
{
	vint64       vlong;
	ntpcal_split split;
	vlong = ntpcal_ntp_to_ntp(ntptime, pivot);
	split = ntpcal_daysplit(&vlong);
	return ntptime - split.lo;
}
u_int32 caldaystart ( u_int32 ntptime , const time_t * pivot ) { vint64 vlong ; ntpcal_split split ; vlong = ntpcal_ntp_to_ntp ( ntptime , pivot ) ; split = ntpcal_daysplit ( & vlong ) ; return ntptime - split . lo ; }
caldaystart - get NTP time at midnight of the current day.
caldaystart - get NTP time at midnight of the current day .