TimeFromTicks()

Overview

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

import mariadb

x = mariadb.TimeFromTicks(1234567890)
print(x) # Outputs: 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.