| |
- 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.
- DateTime_or_None(s)
- Date_or_None(s)
- TimeDelta_or_None(s)
- TimeFromTicks(ticks)
- Convert UNIX ticks into a time instance.
- Time_or_None(s)
- TimestampFromTicks(ticks)
- Convert UNIX ticks into a datetime instance.
- format_TIMESTAMP(d)
- localtime(...)
- localtime([seconds]) -> (tm_year,tm_mon,tm_day,tm_hour,tm_min,tm_sec,tm_wday,tm_yday,tm_isdst)
Convert seconds since the Epoch to a time tuple expressing local time.
When 'seconds' is not passed in, convert the current time instead.
- mysql_timestamp_converter(s)
- Convert a MySQL TIMESTAMP to a Timestamp object.
- string_literal(...)
- string_literal(obj) -- converts object obj into a SQL string literal.
This means, any special SQL characters are escaped, and it is enclosed
within single quotes. In other words, it performs:
"'%s'" % escape_string(str(obj))
Use connection.string_literal(obj), if you use it at all.
_mysql.string_literal(obj) cannot handle character sets.
|