blob: ba9cea9c2bc2d0eb1f723ec153cf39ff2f90ee8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* 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)
{
if (leapsecs_add(&u, 0) < 0) return 0 ;
u += 10 ;
t->x = u ;
return 1 ;
}
|