Package MySQLdb :: Module times
[hide private]
[frames] | no frames]

Module times

source code

times module

This module provides some Date and Time classes for dealing with MySQL data.

Use Python datetime module to handle date and time columns.

Functions [hide private]
 
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
 
format_TIMEDELTA(v) source code
 
format_TIMESTAMP(d) source code
 
DateTime_or_None(s) source code
 
TimeDelta_or_None(s) source code
 
Time_or_None(s) source code
 
Date_or_None(s) 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