tai_from_localtm.c (242B)
1 /* ISC license. */ 2 3 #include <time.h> 4 #include <skalibs/uint64.h> 5 #include <skalibs/djbtime.h> 6 7 int tai_from_localtm (tai *t, struct tm const *l) 8 { 9 uint64_t u ; 10 if (!ltm64_from_localtm(&u, l)) return 0 ; 11 return tai_from_ltm64(t, u) ; 12 }