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