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

Module MySQLdb.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)
  DateFromTicks(ticks)
Convert UNIX ticks into a date instance.
  DateTime2literal(d, c)
Format a DateTime object as an ISO timestamp.
  DateTime_or_None(s)
  DateTimeDelta2literal(d, c)
Format a DateTimeDelta object as a time.
  format_TIMEDELTA(v)
  format_TIMESTAMP(d)
  mysql_timestamp_converter(s)
Convert a MySQL TIMESTAMP to a Timestamp object.
  Time_or_None(s)
  TimeDelta_or_None(s)
  TimeFromTicks(ticks)
Convert UNIX ticks into a time instance.
  TimestampFromTicks(ticks)
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.


Generated by Epydoc 2.1 on Sat Mar 3 21:14:16 2007 http://epydoc.sf.net