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

#include <skalibs/djbtime.h>

int tain_from_localtmn (tain_t *a, localtmn_t const *l)
{
  tai_t t ;
  if (!tai_from_localtm(&t, &l->tm)) return 0 ;
  a->sec = t ;
  a->nano = l->nano ;
  return 1 ;
}