DateFromTicks()

Overview

Returns an object for holding a date value, built from the given ticks value (seconds since the epoch).

See also: MariaDB Connector/Python 1.1 and in 1.0

EXAMPLES

Construct a date value from a count of seconds since the Unix epoch:

import mariadb

x = mariadb.DateFromTicks(1234567890)
print(x) # Outputs: 2009-02-13

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.