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

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

int localtm_from_utc (struct tm *l, uint64 u, int tz)
{
  if (!ltm64_from_utc(&u)) return 0 ;
  return localtm_from_ltm64(l, u, tz) ;
}