summaryrefslogtreecommitdiff
path: root/src/libstddjb/tai_from_utc.c
blob: 1b9762b931abdf7dade5ec39d4d8eab6138e85f7 (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_t u)
{
  leapsecs_add(&u, 0) ;
  return tai_u64(t, u + 10) ;
}