ltm64_from_tai.c (278B)
1 /* ISC license. */ 2 3 #include <skalibs/djbtime.h> 4 #include "djbtime-internal.h" 5 6 int ltm64_from_tai (uint64_t *u, tai const *t) 7 { 8 switch (skalibs_tzisright()) 9 { 10 case 1 : *u = t->x - 10U ; return 1 ; 11 case 0 : return utc_from_tai(u, t) ; 12 default : return 0 ; 13 } 14 }