mbgtools-lx  4.2.8
Time zone / daylight saving parameters

Data Structures

struct  TZDL
 Time zone / daylight saving parameters. More...
 

Macros

#define _mbg_swab_tzdl(_p)
 
#define DL_AUTO_FLAG   0x8000
 A flag indicating automatic computation of DST. More...
 
#define DEFAULT_TZDL_AUTO_YEAR   ( (int16_t) ( 2007L | DL_AUTO_FLAG ) )
 
#define DEFAULt_TZDL_OFFS_DL   3600L
 usually DST is +1 hour More...
 
#define DEFAULT_TZDL_TM_ON_OFF_NO_DST   { DEFAULT_TZDL_AUTO_YEAR, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 }
 
#define TZ_INFO_UTC   "UTC (Universal Time, Coordinated)"
 
#define DEFAULT_TZDL_NAMES_UTC   { "UTC ", "UTC " }
 
#define DEFAULT_TZDL_UTC
 
#define DEFAULT_TZDL_TM_ON_CET_CEST   { DEFAULT_TZDL_AUTO_YEAR, 3, 25, 0, 0, 2, 0, 0, 0L, 0L, 0 }
 An initializer for TZDL::tm_on according to the rules for Central Europe. More...
 
#define DEFAULT_TZDL_TM_OFF_CET_CEST   { DEFAULT_TZDL_AUTO_YEAR, 10, 25, 0, 0, 3, 0, 0, 0L, 0L, 0 }
 An initializer for TZDL::tm_off according to the rules for Central Europe. More...
 
#define TZ_INFO_CET_CEST_EN   "CET/CEST (Central Europe)"
 
#define TZ_INFO_CET_CEST_DE   "MEZ/MESZ (Mitteleuropa)"
 
#define DEFAULT_TZDL_NAMES_CET_CEST_EN   { "CET ", "CEST " }
 
#define DEFAULT_TZDL_NAMES_CET_CEST_DE   { "MEZ ", "MESZ " }
 
#define DEFAULT_TZDL_OFFS_CET   3600L
 
#define DEFAULT_TZDL_CET_CEST_EN
 
#define DEFAULT_TZDL_CET_CEST_DE
 
#define DEFAULT_TZDL_TM_ON_EET_EEST   { DEFAULT_TZDL_AUTO_YEAR, 3, 25, 0, 0, 3, 0, 0, 0L, 0L, 0 }
 
#define DEFAULT_TZDL_TM_OFF_EET_EEST   { DEFAULT_TZDL_AUTO_YEAR, 10, 25, 0, 0, 4, 0, 0, 0L, 0L, 0 }
 
#define TZ_INFO_EET_EEST_EN   "EET/EEST (East Europe)"
 
#define TZ_INFO_EET_EEST_DE   "OEZ/OEST (Osteuropa)"
 
#define DEFAULT_TZDL_NAMES_EET_EEST_EN   { "EET ", "EEST " }
 
#define DEFAULT_TZDL_NAMES_EET_EEST_DE   { "OEZ ", "OESZ " }
 
#define DEFAULT_TZDL_OFFS_EET   7200L
 
#define DEFAULT_TZDL_EET_EEST_EN
 
#define DEFAULT_TZDL_EET_EEST_DE
 

Typedefs

typedef char TZ_NAME[6]
 The name of a time zone. More...
 

Detailed Description

Example:
For automatic daylight saving enable/disable in Central Europe, the variables are to be set as shown below:

Macro Definition Documentation

◆ _mbg_swab_tzdl

#define _mbg_swab_tzdl (   _p)
Value:
do \
{ \
_mbg_swab32( &(_p)->offs ); \
_mbg_swab32( &(_p)->offs_dl ); \
_mbg_swab_tm_gps( &(_p)->tm_on ); \
_mbg_swab_tm_gps( &(_p)->tm_off ); \
} while ( 0 )

Definition at line 2950 of file gpsdefs.h.

Referenced by mbg_get_gps_tzdl(), mbg_set_gps_tzdl(), mbgextio_get_tzdl(), and mbgextio_set_tzdl().

◆ DEFAULT_TZDL_AUTO_YEAR

#define DEFAULT_TZDL_AUTO_YEAR   ( (int16_t) ( 2007L | DL_AUTO_FLAG ) )

Definition at line 2972 of file gpsdefs.h.

◆ DEFAULT_TZDL_CET_CEST_DE

#define DEFAULT_TZDL_CET_CEST_DE
Value:
{ \
DEFAULT_TZDL_OFFS_CET, /* offs */ \
DEFAULt_TZDL_OFFS_DL, /* offs_dl */ \
DEFAULT_TZDL_TM_ON_CET_CEST, /* tm_on */ \
DEFAULT_TZDL_TM_OFF_CET_CEST, /* tm_off */ \
DEFAULT_TZDL_NAMES_CET_CEST_DE /* name */ \
}

Definition at line 3033 of file gpsdefs.h.

◆ DEFAULT_TZDL_CET_CEST_EN

#define DEFAULT_TZDL_CET_CEST_EN
Value:
{ \
DEFAULT_TZDL_OFFS_CET, /* offs */ \
DEFAULt_TZDL_OFFS_DL, /* offs_dl */ \
DEFAULT_TZDL_TM_ON_CET_CEST, /* tm_on */ \
DEFAULT_TZDL_TM_OFF_CET_CEST, /* tm_off */ \
DEFAULT_TZDL_NAMES_CET_CEST_EN /* name */ \
}

Definition at line 3024 of file gpsdefs.h.

◆ DEFAULT_TZDL_EET_EEST_DE

#define DEFAULT_TZDL_EET_EEST_DE
Value:
{ \
DEFAULT_TZDL_OFFS_EET, /* offs */ \
DEFAULt_TZDL_OFFS_DL, /* offs_dl */ \
DEFAULT_TZDL_TM_ON_EET_EEST, /* tm_on */ \
DEFAULT_TZDL_TM_OFF_EET_EEST, /* tm_off */ \
DEFAULT_TZDL_NAMES_EET_EEST_DE /* name */ \
}

Definition at line 3072 of file gpsdefs.h.

◆ DEFAULT_TZDL_EET_EEST_EN

#define DEFAULT_TZDL_EET_EEST_EN
Value:
{ \
DEFAULT_TZDL_OFFS_EET, /* offs */ \
DEFAULt_TZDL_OFFS_DL, /* offs_dl */ \
DEFAULT_TZDL_TM_ON_EET_EEST, /* tm_on */ \
DEFAULT_TZDL_TM_OFF_EET_EEST, /* tm_off */ \
DEFAULT_TZDL_NAMES_EET_EEST_EN /* name */ \
}

Definition at line 3063 of file gpsdefs.h.

◆ DEFAULT_TZDL_NAMES_CET_CEST_DE

#define DEFAULT_TZDL_NAMES_CET_CEST_DE   { "MEZ ", "MESZ " }

Definition at line 3020 of file gpsdefs.h.

◆ DEFAULT_TZDL_NAMES_CET_CEST_EN

#define DEFAULT_TZDL_NAMES_CET_CEST_EN   { "CET ", "CEST " }

Definition at line 3019 of file gpsdefs.h.

◆ DEFAULT_TZDL_NAMES_EET_EEST_DE

#define DEFAULT_TZDL_NAMES_EET_EEST_DE   { "OEZ ", "OESZ " }

Definition at line 3059 of file gpsdefs.h.

◆ DEFAULT_TZDL_NAMES_EET_EEST_EN

#define DEFAULT_TZDL_NAMES_EET_EEST_EN   { "EET ", "EEST " }

Definition at line 3058 of file gpsdefs.h.

◆ DEFAULT_TZDL_NAMES_UTC

#define DEFAULT_TZDL_NAMES_UTC   { "UTC ", "UTC " }

Definition at line 2989 of file gpsdefs.h.

◆ DEFAULT_TZDL_OFFS_CET

#define DEFAULT_TZDL_OFFS_CET   3600L

Definition at line 3022 of file gpsdefs.h.

◆ DEFAULt_TZDL_OFFS_DL

#define DEFAULt_TZDL_OFFS_DL   3600L

usually DST is +1 hour

Definition at line 2974 of file gpsdefs.h.

◆ DEFAULT_TZDL_OFFS_EET

#define DEFAULT_TZDL_OFFS_EET   7200L

Definition at line 3061 of file gpsdefs.h.

◆ DEFAULT_TZDL_TM_OFF_CET_CEST

#define DEFAULT_TZDL_TM_OFF_CET_CEST   { DEFAULT_TZDL_AUTO_YEAR, 10, 25, 0, 0, 3, 0, 0, 0L, 0L, 0 }

An initializer for TZDL::tm_off according to the rules for Central Europe.

Definition at line 3010 of file gpsdefs.h.

◆ DEFAULT_TZDL_TM_OFF_EET_EEST

#define DEFAULT_TZDL_TM_OFF_EET_EEST   { DEFAULT_TZDL_AUTO_YEAR, 10, 25, 0, 0, 4, 0, 0, 0L, 0L, 0 }

Definition at line 3049 of file gpsdefs.h.

◆ DEFAULT_TZDL_TM_ON_CET_CEST

#define DEFAULT_TZDL_TM_ON_CET_CEST   { DEFAULT_TZDL_AUTO_YEAR, 3, 25, 0, 0, 2, 0, 0, 0L, 0L, 0 }

An initializer for TZDL::tm_on according to the rules for Central Europe.

Definition at line 3004 of file gpsdefs.h.

◆ DEFAULT_TZDL_TM_ON_EET_EEST

#define DEFAULT_TZDL_TM_ON_EET_EEST   { DEFAULT_TZDL_AUTO_YEAR, 3, 25, 0, 0, 3, 0, 0, 0L, 0L, 0 }

Definition at line 3046 of file gpsdefs.h.

◆ DEFAULT_TZDL_TM_ON_OFF_NO_DST

#define DEFAULT_TZDL_TM_ON_OFF_NO_DST   { DEFAULT_TZDL_AUTO_YEAR, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 }

An initializer for TZDL::tm_on and TZDL::tm_off for time zones which do not observe DST.

Definition at line 2981 of file gpsdefs.h.

◆ DEFAULT_TZDL_UTC

#define DEFAULT_TZDL_UTC
Value:
{ \
0L, /* offs */ \
0L, /* offs_dl */ \
DEFAULT_TZDL_TM_ON_OFF_NO_DST, /* tm_on */ \
DEFAULT_TZDL_TM_ON_OFF_NO_DST, /* tm_off */ \
DEFAULT_TZDL_NAMES_UTC /* name */ \
}

Definition at line 2991 of file gpsdefs.h.

◆ DL_AUTO_FLAG

#define DL_AUTO_FLAG   0x8000

A flag indicating automatic computation of DST.

If this flag is or'ed to the year numbers in TZDL::tm_on and TZDL::tm_off then daylight saving is computed automatically year by year.

Definition at line 2966 of file gpsdefs.h.

◆ TZ_INFO_CET_CEST_DE

#define TZ_INFO_CET_CEST_DE   "MEZ/MESZ (Mitteleuropa)"

Definition at line 3017 of file gpsdefs.h.

◆ TZ_INFO_CET_CEST_EN

#define TZ_INFO_CET_CEST_EN   "CET/CEST (Central Europe)"

Definition at line 3016 of file gpsdefs.h.

◆ TZ_INFO_EET_EEST_DE

#define TZ_INFO_EET_EEST_DE   "OEZ/OEST (Osteuropa)"

Definition at line 3056 of file gpsdefs.h.

◆ TZ_INFO_EET_EEST_EN

#define TZ_INFO_EET_EEST_EN   "EET/EEST (East Europe)"

Definition at line 3055 of file gpsdefs.h.

◆ TZ_INFO_UTC

#define TZ_INFO_UTC   "UTC (Universal Time, Coordinated)"

Definition at line 2987 of file gpsdefs.h.

Typedef Documentation

◆ TZ_NAME

typedef char TZ_NAME[6]

The name of a time zone.

Note
Up to 5 printable characters, plus trailing zero

Definition at line 2925 of file gpsdefs.h.