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

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

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