![]() |
Ultibo API
C/C++ API for Ultibo Core
|
Go to the source code of this file.
Data Structures | |
| struct | _TIME_ZONE_INFORMATION |
| struct | _TIMEZONE_DATA |
| struct | _TIMEZONE_ENTRY |
Macros | |
| #define | TIME_ZONE_ID_UNKNOWN 0 |
| #define | TIME_ZONE_ID_STANDARD 1 |
| #define | TIME_ZONE_ID_DAYLIGHT 2 |
| #define | TIME_ZONE_ID_INVALID (DWORD)0xFFFFFFFF |
| #define | TIMEZONE_SIGNATURE 0xED9A1BC3 |
| #define | TIMEZONE_NAME_LENGTH SIZE_64 |
| Length of timezone name. | |
| #define | TIMEZONE_DESC_LENGTH SIZE_128 |
| Length of timezone description. | |
Typedefs | |
| typedef struct _TIME_ZONE_INFORMATION | TIME_ZONE_INFORMATION |
| typedef struct _TIMEZONE_DATA | TIMEZONE_DATA |
| typedef struct _TIMEZONE_ENTRY | TIMEZONE_ENTRY |
| typedef uint32_t STDCALL(* | timezone_enumerate_cb) (TIMEZONE_ENTRY *timezone, void *data) |
Functions | |
| uint32_t STDCALL | timezone_add (TIMEZONE_DATA *data, BOOL _default) |
| Add a Timezone from a timezone data block and to the Timezone table. | |
| uint32_t STDCALL | timezone_delete (TIMEZONE_ENTRY *timezone) |
| uint32_t STDCALL | timezone_get_name (TIMEZONE_ENTRY *timezone, char *name, uint32_t len) |
| uint32_t STDCALL | timezone_get_description (TIMEZONE_ENTRY *timezone, char *description, uint32_t len) |
| int32_t STDCALL | timezone_get_bias (TIMEZONE_ENTRY *timezone) |
| uint32_t STDCALL | timezone_get_state (TIMEZONE_ENTRY *timezone) |
| Get the state of the supplied Timezone at the current date and time. | |
| uint32_t STDCALL | timezone_get_state_ex (TIMEZONE_ENTRY *timezone, double_t datetime) |
| Get the state of the supplied Timezone at the specified date and time. | |
| int32_t STDCALL | timezone_get_active_bias (TIMEZONE_ENTRY *timezone) |
| Get the bias (offset between UTC and Local) of the supplied Timezone at the current date and time. | |
| int32_t STDCALL | timezone_get_active_bias_ex (TIMEZONE_ENTRY *timezone, double_t datetime) |
| Get the bias (offset between UTC and Local) of the supplied Timezone at the specified date and time. | |
| uint32_t STDCALL | timezone_get_standard_name (TIMEZONE_ENTRY *timezone, char *name, uint32_t len) |
| int32_t STDCALL | timezone_get_standard_bias (TIMEZONE_ENTRY *timezone) |
| double_t STDCALL | timezone_get_standard_date (TIMEZONE_ENTRY *timezone, BOOL next) |
| SYSTEMTIME STDCALL | timezone_get_standard_start (TIMEZONE_ENTRY *timezone) |
| uint32_t STDCALL | timezone_get_daylight_name (TIMEZONE_ENTRY *timezone, char *name, uint32_t len) |
| int32_t STDCALL | timezone_get_daylight_bias (TIMEZONE_ENTRY *timezone) |
| double_t STDCALL | timezone_get_daylight_date (TIMEZONE_ENTRY *timezone, BOOL next) |
| SYSTEMTIME STDCALL | timezone_get_daylight_start (TIMEZONE_ENTRY *timezone) |
| TIMEZONE_ENTRY *STDCALL | timezone_find (const char *name) |
| TIMEZONE_ENTRY *STDCALL | timezone_find_by_standard (const char *standardname) |
| TIMEZONE_ENTRY *STDCALL | timezone_find_by_daylight (const char *daylightname) |
| uint32_t STDCALL | timezone_enumerate (timezone_enumerate_cb callback, void *data) |
| uint32_t STDCALL | timezone_get_count (void) |
| Get the current timezone count. | |
| TIMEZONE_ENTRY *STDCALL | timezone_get_default (void) |
| Get the current default timezone. | |
| uint32_t STDCALL | timezone_set_default (TIMEZONE_ENTRY *timezone) |
| Set the current default timezone. | |
| TIMEZONE_ENTRY *STDCALL | timezone_check (TIMEZONE_ENTRY *timezone) |
| Check if the supplied Timezone is in the Timezone table. | |
| uint32_t STDCALL | timezone_update_offset (void) |
| uint32_t STDCALL | timezone_update_environment (void) |
| Update the TZ environment variable to represent the current timezone. | |
| uint32_t STDCALL | timezone_calculate_offset (double_t datetime, int32_t *offset, BOOL *daylight) |
| Calculate the Timezone Offset at the given date and time in the current timezone. | |
| double_t STDCALL | timezone_start_to_date_time (SYSTEMTIME *start, uint16_t year) |
| Calculate the start date and time from the start date of a timezone. | |
| uint32_t STDCALL | timezone_start_to_description (SYSTEMTIME *start, char *description, uint32_t len) |
| Get the description of the start date of a timezone. | |
| #define TIME_ZONE_ID_UNKNOWN 0 |
Timezone specific constants
| #define TIME_ZONE_ID_STANDARD 1 |
| #define TIME_ZONE_ID_DAYLIGHT 2 |
| #define TIME_ZONE_ID_INVALID (DWORD)0xFFFFFFFF |
| #define TIMEZONE_SIGNATURE 0xED9A1BC3 |
Timezone Signature
| #define TIMEZONE_NAME_LENGTH SIZE_64 |
Length of timezone name.
Timezone name constants
| #define TIMEZONE_DESC_LENGTH SIZE_128 |
Length of timezone description.
| typedef struct _TIME_ZONE_INFORMATION TIME_ZONE_INFORMATION |
Timezone specific types Timezone types
| typedef struct _TIMEZONE_DATA TIMEZONE_DATA |
Timezone Data
| typedef struct _TIMEZONE_ENTRY TIMEZONE_ENTRY |
| typedef uint32_t STDCALL(* timezone_enumerate_cb) (TIMEZONE_ENTRY *timezone, void *data) |
Timezone Enumeration Callback
| uint32_t STDCALL timezone_add | ( | TIMEZONE_DATA * | data, |
| BOOL | _default ) |
Add a Timezone from a timezone data block and to the Timezone table.
Timezone Functions
| uint32_t STDCALL timezone_delete | ( | TIMEZONE_ENTRY * | timezone | ) |
| uint32_t STDCALL timezone_get_name | ( | TIMEZONE_ENTRY * | timezone, |
| char * | name, | ||
| uint32_t | len ) |
| uint32_t STDCALL timezone_get_description | ( | TIMEZONE_ENTRY * | timezone, |
| char * | description, | ||
| uint32_t | len ) |
| int32_t STDCALL timezone_get_bias | ( | TIMEZONE_ENTRY * | timezone | ) |
| uint32_t STDCALL timezone_get_state | ( | TIMEZONE_ENTRY * | timezone | ) |
Get the state of the supplied Timezone at the current date and time.
| Timezone | The timezone entry to get the state for |
| uint32_t STDCALL timezone_get_state_ex | ( | TIMEZONE_ENTRY * | timezone, |
| double_t | datetime ) |
Get the state of the supplied Timezone at the specified date and time.
| Timezone | The timezone entry to get the state for |
| DateTime | The date and time to get the state of the timezone at (Assumed to be Local) |
| int32_t STDCALL timezone_get_active_bias | ( | TIMEZONE_ENTRY * | timezone | ) |
Get the bias (offset between UTC and Local) of the supplied Timezone at the current date and time.
| Timezone | The timezone entry to get the bias for |
| int32_t STDCALL timezone_get_active_bias_ex | ( | TIMEZONE_ENTRY * | timezone, |
| double_t | datetime ) |
Get the bias (offset between UTC and Local) of the supplied Timezone at the specified date and time.
| Timezone | The timezone entry to get the bias for |
| DateTime | The date and time to get the bias of the timezone at (Assumed to be Local) |
| uint32_t STDCALL timezone_get_standard_name | ( | TIMEZONE_ENTRY * | timezone, |
| char * | name, | ||
| uint32_t | len ) |
| int32_t STDCALL timezone_get_standard_bias | ( | TIMEZONE_ENTRY * | timezone | ) |
| double_t STDCALL timezone_get_standard_date | ( | TIMEZONE_ENTRY * | timezone, |
| BOOL | next ) |
| SYSTEMTIME STDCALL timezone_get_standard_start | ( | TIMEZONE_ENTRY * | timezone | ) |
| uint32_t STDCALL timezone_get_daylight_name | ( | TIMEZONE_ENTRY * | timezone, |
| char * | name, | ||
| uint32_t | len ) |
| int32_t STDCALL timezone_get_daylight_bias | ( | TIMEZONE_ENTRY * | timezone | ) |
| double_t STDCALL timezone_get_daylight_date | ( | TIMEZONE_ENTRY * | timezone, |
| BOOL | next ) |
| SYSTEMTIME STDCALL timezone_get_daylight_start | ( | TIMEZONE_ENTRY * | timezone | ) |
| TIMEZONE_ENTRY *STDCALL timezone_find | ( | const char * | name | ) |
| TIMEZONE_ENTRY *STDCALL timezone_find_by_standard | ( | const char * | standardname | ) |
| TIMEZONE_ENTRY *STDCALL timezone_find_by_daylight | ( | const char * | daylightname | ) |
| uint32_t STDCALL timezone_enumerate | ( | timezone_enumerate_cb | callback, |
| void * | data ) |
| uint32_t STDCALL timezone_get_count | ( | void | ) |
Get the current timezone count.
Timezone Helper Functions
| TIMEZONE_ENTRY *STDCALL timezone_get_default | ( | void | ) |
Get the current default timezone.
| uint32_t STDCALL timezone_set_default | ( | TIMEZONE_ENTRY * | timezone | ) |
Set the current default timezone.
| TIMEZONE_ENTRY *STDCALL timezone_check | ( | TIMEZONE_ENTRY * | timezone | ) |
Check if the supplied Timezone is in the Timezone table.
| uint32_t STDCALL timezone_update_offset | ( | void | ) |
| uint32_t STDCALL timezone_update_environment | ( | void | ) |
Update the TZ environment variable to represent the current timezone.
Calculate the Timezone Offset at the given date and time in the current timezone.
| DateTime | The date and time to calculate the offset for (Assumed to be Local) |
| Offset | The returned Offset in minutes |
| Daylight | True on return if daylight savings is in effect at the specified date and time |
| double_t STDCALL timezone_start_to_date_time | ( | SYSTEMTIME * | start, |
| uint16_t | year ) |
Calculate the start date and time from the start date of a timezone.
| uint32_t STDCALL timezone_start_to_description | ( | SYSTEMTIME * | start, |
| char * | description, | ||
| uint32_t | len ) |
Get the description of the start date of a timezone.