TimestampFromTicks()

Overview

Returns an object for holding a timestamp 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 timestamp value from a count of seconds since the Unix epoch:

import mariadb

x = mariadb.TimestampFromTicks(1234567890)
print(x) # Outputs: 2009-02-13 23:31: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.