Time()

Overview

Returns an object for holding a time value.

See also: MariaDB Connector/Python 1.1 and in 1.0

EXAMPLES

Construct a time value from any hour, minute, and second:

import mariadb

x = mariadb.Time(16, 59, 30)
print(x) # Outputs: 16:59:30

CHANGE HISTORY

Release Series

History

1.1

  • Present starting in MariaDB Connector/Python 1.1.2.

1.0

  • Present starting in MariaDB Connector/Python 1.0.0.