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

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

int tai_from_utc (tai_t *t, uint64_t u)
{
  leapsecs_add(&u, 0) ;
  return tai_u64(t, u + 10) ;
}