syslog-ng source
zoneinfo.c File Reference
#include "timeutils/zoneinfo.h"
#include "timeutils/zonedb.h"
#include "reloc.h"
#include "messages.h"
#include <ctype.h>
#include <string.h>
Include dependency graph for zoneinfo.c:

Classes

struct  Transition
 
struct  ZoneInfo
 
struct  TimeZoneInfo
 

Macros

#define TZCACHE_SIZE   4
 
#define TZCACHE_SIZE_MASK   (TZCACHE_SIZE - 1)
 
#define TZ_MAGIC   "TZif"
 

Functions

gint32 time_zone_info_get_offset (const TimeZoneInfo *self, time_t stamp)
 
TimeZoneInfo * time_zone_info_new (const gchar *tz)
 
void time_zone_info_free (TimeZoneInfo *self)
 

Variables

const gint64 LOWEST_TIME32 = (gint64)((gint32)0x80000000)
 

Macro Definition Documentation

◆ TZ_MAGIC

#define TZ_MAGIC   "TZif"

◆ TZCACHE_SIZE

#define TZCACHE_SIZE   4

◆ TZCACHE_SIZE_MASK

#define TZCACHE_SIZE_MASK   (TZCACHE_SIZE - 1)

Function Documentation

◆ time_zone_info_free()

void time_zone_info_free ( TimeZoneInfo *  self)

◆ time_zone_info_get_offset()

gint32 time_zone_info_get_offset ( const TimeZoneInfo *  self,
time_t  stamp 
)

◆ time_zone_info_new()

TimeZoneInfo* time_zone_info_new ( const gchar *  tz)

Variable Documentation

◆ LOWEST_TIME32

const gint64 LOWEST_TIME32 = (gint64)((gint32)0x80000000)