MobilityDB 1.1
Data Structures | Macros | Enumerations | Functions | Variables
localtime.c File Reference
#include "c.h"
#include <fcntl.h>
#include "utils/timestamp_def.h"
#include "pgtz.h"
#include "private.h"
#include "tzfile.h"
Include dependency graph for localtime.c:

Data Structures

struct  local_storage::file_analysis
 
union  input_buffer
 
union  local_storage
 
struct  rule
 

Macros

#define TZDEFRULESTRING   ",M3.2.0,M11.1.0"
 
#define WILDABBR   " "
 

Enumerations

enum  r_type { JULIAN_DAY , DAY_OF_YEAR , MONTH_NTH_DAY_OF_WEEK }
 

Functions

static int32 detzcode (const char *const codep)
 
static int64 detzcode64 (const char *const codep)
 
static bool differ_by_repeat (const pg_time_t t1, const pg_time_t t0)
 
static const char * getnum (const char *strp, int *const nump, const int min, const int max)
 
static const char * getoffset (const char *strp, int32 *const offsetp)
 
static const char * getqzname (const char *strp, const int delim)
 
static const char * getrule (const char *strp, struct rule *const rulep)
 
static const char * getsecs (const char *strp, int32 *const secsp)
 
static const char * getzname (const char *strp)
 
static void gmtload (struct state *const sp)
 
static struct pg_tmgmtsub (pg_time_t const *, int32, struct pg_tm *)
 
static bool increment_overflow (int *, int)
 
static bool increment_overflow_time (pg_time_t *, int32)
 
static void init_ttinfo (struct ttinfo *s, int32 utoff, bool isdst, int desigidx)
 
static int64 leapcorr (struct state const *, pg_time_t)
 
static int leaps_thru_end_of (const int y)
 
static int leaps_thru_end_of_nonneg (int y)
 
static struct pg_tmlocalsub (struct state const *sp, pg_time_t const *timep, struct pg_tm *const tmp)
 
const char * pg_get_timezone_name (pg_tz *tz)
 
bool pg_get_timezone_offset (const pg_tz *tz, long int *gmtoff)
 
struct pg_tmpg_gmtime (const pg_time_t *timep)
 
bool pg_interpret_timezone_abbrev (const char *abbrev, const pg_time_t *timep, long int *gmtoff, int *isdst, const pg_tz *tz)
 
struct pg_tmpg_localtime (const pg_time_t *timep, const pg_tz *tz)
 
int pg_next_dst_boundary (const pg_time_t *timep, long int *before_gmtoff, int *before_isdst, pg_time_t *boundary, long int *after_gmtoff, int *after_isdst, const pg_tz *tz)
 
bool pg_tz_acceptable (pg_tz *tz)
 
static struct pg_tmtimesub (pg_time_t const *, int32, struct state const *, struct pg_tm *)
 
static int32 transtime (const int year, const struct rule *const rulep, const int32 offset)
 
static bool typesequiv (struct state const *, int, int)
 
int tzload (const char *name, char *canonname, struct state *sp, bool doextend)
 
static int tzloadbody (char const *name, char *canonname, struct state *sp, bool doextend, union local_storage *lsp)
 
bool tzparse (const char *name, struct state *sp, bool lastditch)
 

Variables

static const char gmt [] = "GMT"
 
static const int mon_lengths [2][MONSPERYEAR]
 
static struct pg_tm tm
 
static const char wildabbr [] = WILDABBR
 
static const int year_lengths [2]