For the complete documentation index, see llms.txt. This page is also available as Markdown.

THD Timezone Service

Plugin API reference: THD Timezone Service. Generated from the MariaDB server headers by doxygen and moxygen.

Plugin API / Services for Plugins / Plugin Services

THD timezone handling for plugin(s)

This service provides functions to convert between my_time_t and MYSQL_TIME taking into account the current value of the time_zone session variable.

The values of the my_time_t type are in Unix timestamp format, i.e. the number of seconds since 1970-01-01 00:00:00 UTC.

The values of the MYSQL_TIME type are in the current time zone, according to thd->variables.time_zone.

If the MYSQL_THD parameter is NULL, then global_system_variables.time_zone is used for conversion.

Classes

Macros


thd_TIME_to_gmt_sec

#define thd_TIME_to_gmt_sec(thd, ltime, errcode, thd, ltime, errcode) (thd_timezone_service->thd_TIME_to_gmt_sec((thd), (ltime), (errcode)))

Defined in service_thd_timezone.h:67


thd_gmt_sec_to_TIME

Defined in service_thd_timezone.h:70


thd_TIME_to_str

Defined in service_thd_timezone.h:73

Variables

Return
Name
Description

thd_timezone_service

Type: struct thd_timezone_service_st *

Defined in service_thd_timezone.h:63

Class Definitions

thd_timezone_service_st

Defined in service_thd_timezone.h:59

Public Attributes

Return
Name
Description

thd_TIME_to_gmt_sec

Defined in service_thd_timezone.h:60


thd_gmt_sec_to_TIME

Defined in service_thd_timezone.h:61


thd_TIME_to_str

Defined in service_thd_timezone.h:62

This page is licensed: GPLv2

spinner

Last updated

Was this helpful?