Viewing file: MySQLdb.stringtimes-module.html (15.14 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
MySQLdb.stringtimes
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. |
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. -
|
DateTimeDeltaType
-
- Type:
-
str
- Value:
|
DateTimeType
-
- Type:
-
str
- Value:
|
|