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

#include <skalibs/djbtime.h>
#include "djbtime-internal.h"

int tai_from_ltm64 (tai_t *t, uint64_t u)
{
  switch (skalibs_tzisright())
  {
    case 1 : return tai_u64(t, u + 10U) ;
    case 0 : return tai_from_utc(t, u) ;
    default : return 0 ;
  }
}