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