[LEAPSECS] Coding this week,	and a trick for timeouts over	leap  seconds.
    Zefram 
    zefram at fysh.org
       
    Sun Oct  2 08:54:36 EDT 2011
    
    
  
Hal Murray wrote:
>  run a program to tell the kernel leap-tonight
$ /sbin/adjtimex -S 17   # STA_PLL|STA_INS
>  run a program to tell the kernel no-leap
$ /sbin/adjtimex -S 65   # STA_PLL|STA_UNSYNC
This, together with some clock stepping so that I didn't need to wait
for actual midnight, was how I tested my clock display program for
leap seconds.  The STA_ constants come from /usr/include/sys/timex.h.
-zefram
    
    
More information about the LEAPSECS
mailing list