skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

tain_from_localtmn.c (214B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/djbtime.h>
      4 
      5 int tain_from_localtmn (tain *a, localtmn const *l)
      6 {
      7   tai t ;
      8   if (!tai_from_localtm(&t, &l->tm)) return 0 ;
      9   a->sec = t ;
     10   a->nano = l->nano ;
     11   return 1 ;
     12 }