Date()

Overview

Returns an object for holding a date value.

See also: MariaDB Connector/Python 1.1 and in 1.0

EXAMPLES

Construct a date value from any year, month, and day:

import mariadb

x = mariadb.Date(2020, 12, 31)
print(x) # Outputs: 2020-12-31

CHANGE HISTORY

Release Series

History

1.1

  • Present starting in MariaDB Connector/Python 1.1.0rc1.

1.0

  • Present starting in MariaDB Connector/Python 1.0.0.