Home | Trees | Index | Help |
---|
Package MySQLdb :: Module times |
|
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.
Function Summary | |
---|---|
Date_or_None(s)
| |
Convert UNIX ticks into a date instance. | |
Format a DateTime object as an ISO timestamp. | |
DateTime_or_None(s)
| |
Format a DateTimeDelta object as a time. | |
format_TIMEDELTA(v)
| |
format_TIMESTAMP(d)
| |
Convert a MySQL TIMESTAMP to a Timestamp object. | |
Time_or_None(s)
| |
TimeDelta_or_None(s)
| |
Convert UNIX ticks into a time instance. | |
Convert UNIX ticks into a datetime instance. |
Function Details |
---|
DateFromTicks(ticks)Convert UNIX ticks into a date instance. |
DateTime2literal(d, c)Format a DateTime object as an ISO timestamp. |
DateTimeDelta2literal(d, c)Format a DateTimeDelta object as a time. |
mysql_timestamp_converter(s)Convert a MySQL TIMESTAMP to a Timestamp object. |
TimeFromTicks(ticks)Convert UNIX ticks into a time instance. |
TimestampFromTicks(ticks)Convert UNIX ticks into a datetime instance. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Mar 3 21:14:16 2007 | http://epydoc.sf.net |