summaryrefslogtreecommitdiff
path: root/timebase.h
blob: 0a6c0c4a5519f6013324794dc706ad0244809e6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* timebase.h -- constants that will require patching over time */

/*
 * The current (fixed) leap-second correction, and the future Unix
 * time after which to start hunting leap-second corrections from GPS
 * subframe data if the GPS doesn't supply them any more readily.
 * Currently 1 Jan 2006, as the current fixed correction is expected
 * to be good until at least then.  Deferring the check is a hack to
 * speed up fix acquisition -- subframe data is bulky enough to
 * substantially increase latency.  To update LEAP_SECONDS and
 * START_SUBFRAME, see the IERS leap-second bulletin page at:
 * <http://hpiers.obspm.fr/eop-pc/products/bulletins/bulletins.html>
 */
#define LEAP_SECONDS	13
#define START_SUBFRAME	1136091600

/*
 * This is used only when an NMEA device issues a two-digit year in a GPRMC
 * and there has been no previous ZDA to set the year.  We used to
 * query the system clock for this,  but there's no good way to cope 
 * with the mess if the system clock has been zeroed.
 */
#define CENTURY_BASE	2000

/* timebase.h ends here */