3 /* This file contains various constants that libntp needs to be set
4 * and that is normally defined in ntpd/ntpq/...
7 u_long current_time = 4; // needed by authkeys. Used only in to calculate lifetime.
8 const char *progname = "ntpdtest";
10 time_t ntpdtest::nowtime = 0;
12 time_t ntpdtest::timefunc(time_t *ptr)
19 void ntpdtest::settime(int y, int m, int d, int H, int M, int S)
22 time_t days(ntpcal_edate_to_eradays(y-1, m-1, d-1) + 1 - DAY_UNIX_STARTS);
23 time_t secs(ntpcal_etime_to_seconds(H, M, S));
25 nowtime = days * SECSPERDAY + secs;