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

#include <sys/types.h>
#include <time.h>
#include <skalibs/uint64.h>
#include <skalibs/djbtime.h>

int utc_from_localtm (uint64 *uu, struct tm const *l)
{
  if (!ltm64_from_localtm(uu, l)) return 0 ;
  utc_from_ltm64(uu) ;
  return 1 ;
}