2 * caljulian - determine the Julian date from an NTP time.
4 * (Note: since we use the GREGORIAN calendar, this should be renamed to
5 * 'calgregorian' eventually...)
10 #include "ntp_types.h"
11 #include "ntp_calendar.h"
13 #if !(defined(ISC_CHECK_ALL) || defined(ISC_CHECK_NONE) || \
14 defined(ISC_CHECK_ENSURE) || defined(ISC_CHECK_INSIST) || \
15 defined(ISC_CHECK_INVARIANT))
16 # define ISC_CHECK_ALL
19 #include "ntp_assert.h"
34 * Unfold ntp time around current time into NTP domain. Split
35 * into days and seconds, shift days into CE domain and
38 vlong = ntpcal_ntp_to_ntp(ntp, NULL);
39 split = ntpcal_daysplit(&vlong);
40 ntpcal_daysplit_to_date(jt, &split, DAY_NTP_STARTS);