blob: ed24cc12541ab3839920085f4f6a384347fc086c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* ISC license. */
#include <time.h>
#include "djbtime-internal.h"
int skalibs_tzisright ()
{
static int tzisright = -1 ;
if (tzisright < 0)
{
struct tm tm ;
time_t t = 78796800 ;
if (localtime_r(&t, &tm)) tzisright = tm.tm_sec == 60 ;
}
return tzisright ;
}
|