MySQL 8.0.39
Source Code Documentation
mysql_time.h File Reference

Time declarations shared between the server and client API: you should not add anything to this header unless it's used (and hence should be visible) in mysql.h. More...

Go to the source code of this file.

Classes

struct  MYSQL_TIME
 

Typedefs

typedef struct MYSQL_TIME MYSQL_TIME
 

Enumerations

enum  enum_mysql_timestamp_type {
  MYSQL_TIMESTAMP_NONE = -2 , MYSQL_TIMESTAMP_ERROR = -1 , MYSQL_TIMESTAMP_DATE = 0 , MYSQL_TIMESTAMP_DATETIME = 1 ,
  MYSQL_TIMESTAMP_TIME = 2 , MYSQL_TIMESTAMP_DATETIME_TZ = 3
}
 

Detailed Description

Time declarations shared between the server and client API: you should not add anything to this header unless it's used (and hence should be visible) in mysql.h.

If you're looking for a place to add new time-related declaration, it's most likely my_time.h. See also "C API Handling of Date and Time Values" chapter in documentation.

Typedef Documentation

◆ MYSQL_TIME

typedef struct MYSQL_TIME MYSQL_TIME

Enumeration Type Documentation

◆ enum_mysql_timestamp_type

Enumerator
MYSQL_TIMESTAMP_NONE 
MYSQL_TIMESTAMP_ERROR 
MYSQL_TIMESTAMP_DATE 

Stores year, month and day components.

MYSQL_TIMESTAMP_DATETIME 

Stores all date and time components.

Value is in UTC for TIMESTAMP type. Value is in local time zone for DATETIME type.

MYSQL_TIMESTAMP_TIME 

Stores hour, minute, second and microsecond.

MYSQL_TIMESTAMP_DATETIME_TZ 

A temporary type for DATETIME or TIMESTAMP types equipped with time zone information.

After the time zone information is reconciled, the type is converted to MYSQL_TIMESTAMP_DATETIME.