blob: 12a739456e52874ffbb430f416ab3cb68c9be8a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* ISC license. */
#include <skalibs/uint64.h>
#include <skalibs/tai.h>
#include <skalibs/djbtime.h>
#include "djbtime-internal.h"
int tai_from_ltm64 (tai_t *t, uint64 u)
{
switch (skalibs_tzisright())
{
case 1 : tai_u64(t, u + 10U) ; return 1 ;
case 0 : return tai_from_utc(t, u) ;
default : return 0 ;
}
}
|