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

#include <skalibs/djbtime.h>

int sysclock_from_localtmn (tain *a, localtmn const *l)
{
  if (!sysclock_from_localtm(&a->sec.x, &l->tm)) return 0 ;
  a->nano = l->nano ;
  return 1 ;
}