skalibs

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

utc_from_localtm.c (237B)


      1 /* ISC license. */
      2 
      3 #include <time.h>
      4 #include <skalibs/uint64.h>
      5 #include <skalibs/djbtime.h>
      6 
      7 int utc_from_localtm (uint64_t *uu, struct tm const *l)
      8 {
      9   if (!ltm64_from_localtm(uu, l)) return 0 ;
     10   utc_from_ltm64(uu) ;
     11   return 1 ;
     12 }