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

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

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