summaryrefslogtreecommitdiff
path: root/src/libstddjb/ltm64_from_tai.c
blob: c0650c559dae35a5c23f285a1a609196f058f4c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ISC license. */

#include <skalibs/config.h>
#include <skalibs/uint64.h>
#include <skalibs/tai.h>
#include <skalibs/djbtime.h>

#ifdef SKALIBS_FLAG_TZISRIGHT

int ltm64_from_tai (uint64 *u, tai_t const *t)
{
  *u = t->x - 10U ;
  return 1 ;
}

#else

int ltm64_from_tai (uint64 *u, tai_t const *t)
{
  return utc_from_tai(u, t) ;
}

#endif