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

Module MySQLdb.stringtimes

Use strings to handle date and time columns as a last resort.
Function Summary
  Date(year, month, day)
Construct an ISO date string.
  Date_or_None(d)
Format a date as a date (does nothing, you don't have mx.DateTime)
  DateFromTicks(ticks)
Convert UNIX ticks to ISO date format.
  DateTime_or_None(d)
Format a date as a date (does nothing, you don't have mx.DateTime)
  format_DATE(d)
Format a date as a date (does nothing, you don't have mx.DateTime)
  format_TIME(d)
Format a date as a date (does nothing, you don't have mx.DateTime)
  format_TIMESTAMP(d)
Format a date as a date (does nothing, you don't have mx.DateTime)
  Time(hour, min, sec)
Construct a TIME string.
  Time_or_None(d)
Format a date as a date (does nothing, you don't have mx.DateTime)
  TimeDelta_or_None(d)
Format a date as a date (does nothing, you don't have mx.DateTime)
  TimeFromTicks(ticks)
Convert UNIX ticks to time format.
  Timestamp(year, month, day, hour, min, sec)
Construct an ISO timestamp.
  TimestampFromTicks(ticks)
Convert UNIX ticks to ISO timestamp format.

Variable Summary
str DateTimeDeltaType = 'DateTimeDeltaType'
str DateTimeType = 'DateTimeType'

Imported functions:
localtime, strftime
Function Details

Date(year, month, day)

Construct an ISO date string.

Date_or_None(d)

Format a date as a date (does nothing, you don't have mx.DateTime)

DateFromTicks(ticks)

Convert UNIX ticks to ISO date format.

DateTime_or_None(d)

Format a date as a date (does nothing, you don't have mx.DateTime)

format_DATE(d)

Format a date as a date (does nothing, you don't have mx.DateTime)

format_TIME(d)

Format a date as a date (does nothing, you don't have mx.DateTime)

format_TIMESTAMP(d)

Format a date as a date (does nothing, you don't have mx.DateTime)

Time(hour, min, sec)

Construct a TIME string.

Time_or_None(d)

Format a date as a date (does nothing, you don't have mx.DateTime)

TimeDelta_or_None(d)

Format a date as a date (does nothing, you don't have mx.DateTime)

TimeFromTicks(ticks)

Convert UNIX ticks to time format.

Timestamp(year, month, day, hour, min, sec)

Construct an ISO timestamp.

TimestampFromTicks(ticks)

Convert UNIX ticks to ISO timestamp format.

Variable Details

DateTimeDeltaType

Type:
str
Value:
'DateTimeDeltaType'                                                    

DateTimeType

Type:
str
Value:
'DateTimeType'                                                         

Generated by Epydoc 2.0 on Thu Jan 20 22:13:52 2005 http://epydoc.sf.net