/* ISC license. */ #include #include #include int timespec_from_tain_relative (struct timespec *ts, tain_t const *a) { struct timespec tmp ; if (!timespec_from_tai_relative(&tmp, tain_secp(a))) return 0 ; ts->tv_sec = tmp.tv_sec ; ts->tv_nsec = a->nano ; return 1 ; }