summaryrefslogtreecommitdiff
path: root/src/libstddjb/ltm64_from_utc.c
blob: 28907c92ac669d2771eeaa3580bd0813fa655283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* ISC license. */

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

int ltm64_from_utc (uint64 *u)
{
  switch (skalibs_tzisright())
  {
    case 1 : return leapsecs_add(u, 0) >= 0 ;
    case 0 : return 1 ;
    default : return 0 ;
  }
}