Timestamp()

Overview

This function constructs an object holding a time stamp value

See also: MariaDB Connector/Python 1.1 and in 1.0

EXAMPLES

Construct a timestamp value from any year, month, day, hour, minute, and second:

import mariadb

x = mariadb.Timestamp(2020, 12, 31, 16, 59, 30)
print(x) # Outputs: 2020-12-31 16:59:30

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.