Structure
MySQLTime
MYSQL_TIMEstruct MySQLTime
Overview
This structure is used to send and receive DATE, TIME, DATETIME, and TIMESTAMP data directly to and from the server. Set the buffer member to point to a MYSQL_TIME structure, and set the buffer_type member of a MYSQL_BIND structure to one of the temporal types (MYSQL_TYPE_TIME, MYSQL_TYPE_DATE, MYSQL_TYPE_DATETIME, MYSQL_TYPE_TIMESTAMP).
https://dev.mysql.com/doc/refman/5.7/en/c-api-prepared-statement-data-structures.html
Topics
Initializers
init(_:)init(date:)Creates a newMySQLTimefrom a SwiftDateusing current calendar and GMT timezone.init(mysqlData:)Seeinit(mysqlData:).init(year:month:day:hour:minute:second:microsecond:)Creates a newMySQLTime.
Instance Properties
dateConverts thisMySQLTimeto a SwiftDateusing the current calendar and GMT timezone.dayThe day of the monthhourThe hour of the daymicrosecondThe fractional part of the second in microsecondsminuteThe minute of the hourmonthThe month of the yearmysqlDataSeemysqlData.secondThe second of the minuteyearThe year
Relationships
Conforms To
MySQLDataConvertibleSwift.Equatable