summaryrefslogtreecommitdiff
path: root/src/libstddjb/tai_from_timeval.c
blob: 41cf5a1cc1c8abd5a40386d54ff64f4c15d95f07 (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <sys/time.h>
#include <skalibs/tai.h>

int tai_from_timeval (tai_t *t, struct timeval const *tv)
{
  tai_unix(t, tv->tv_sec) ;
  return 1 ;
}