diff options
author | gjb <gjb@FreeBSD.org> | 2015-05-06 11:50:30 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2015-05-06 11:50:30 +0000 |
commit | e9b794a6dfdf28ce835f5730e5884b97bc62aa19 (patch) | |
tree | 759e7355bf352e43e4a156a773a28d3d9fdbcad7 /contrib/ntp/include/ntp_calendar.h | |
parent | 55e5b36d38ff95ded004ed97fe9ed303abb36184 (diff) | |
parent | 462d48d659bae28be32c0d488ddeeaaf99d87bae (diff) | |
download | FreeBSD-src-e9b794a6dfdf28ce835f5730e5884b97bc62aa19.zip FreeBSD-src-e9b794a6dfdf28ce835f5730e5884b97bc62aa19.tar.gz |
MFH: r282315-r282534
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'contrib/ntp/include/ntp_calendar.h')
-rw-r--r-- | contrib/ntp/include/ntp_calendar.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/ntp/include/ntp_calendar.h b/contrib/ntp/include/ntp_calendar.h index 3ee1ff7..3afb627 100644 --- a/contrib/ntp/include/ntp_calendar.h +++ b/contrib/ntp/include/ntp_calendar.h @@ -83,13 +83,15 @@ extern systime_func_ptr ntpcal_set_timefunc(systime_func_ptr); #define SECSPERMIN (60) /* seconds per minute */ #define MINSPERHR (60) /* minutes per hour */ #define HRSPERDAY (24) /* hours per day */ +#define DAYSPERWEEK (7) /* days per week */ #define DAYSPERYEAR (365) /* days per year */ #define SECSPERHR (SECSPERMIN * MINSPERHR) #define SECSPERDAY (SECSPERHR * HRSPERDAY) +#define SECSPERWEEK (DAYSPERWEEK * SECSPERDAY) #define SECSPERYEAR (365 * SECSPERDAY) /* regular year */ #define SECSPERLEAPYEAR (366 * SECSPERDAY) /* leap year */ -#define SECSPERAVGYEAR 31556952 /* mean year length over 400yrs */ +#define SECSPERAVGYEAR 31556952 /* mean year length over 400yrs */ /* * Gross hacks. I have illicit knowlege that there won't be overflows @@ -113,7 +115,7 @@ extern uint32_t caltontp (const struct calendar *); * Convert between 'time_t' and 'vint64' */ extern vint64 time_to_vint64(const time_t *); -extern time_t vint64_to_time(const vint64 *); +extern time_t vint64_to_time(const vint64 *); /* * Get the build date & time. ATTENTION: The time zone is not specified! |