This module provides some Date and Time classes for dealing with MySQL
data.
Use Python datetime module to handle date and time columns.
|
DateFromTicks(ticks)
Convert UNIX ticks into a date instance. |
source code
|
|
|
TimeFromTicks(ticks)
Convert UNIX ticks into a time instance. |
source code
|
|
|
TimestampFromTicks(ticks)
Convert UNIX ticks into a datetime instance. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DateTime2literal(d,
c)
Format a DateTime object as an ISO timestamp. |
source code
|
|
|
DateTimeDelta2literal(d,
c)
Format a DateTimeDelta object as a time. |
source code
|
|
|
mysql_timestamp_converter(s)
Convert a MySQL TIMESTAMP to a Timestamp object. |
source code
|
|