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

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

int tai_from_timespec (tai_t *t, struct timespec const *ts)
{
  tai_unix(t, ts->tv_sec) ;
  return 1 ;
}