From: Mike Bayer Date: Tue, 15 Nov 2011 00:24:08 +0000 (-0500) Subject: - clarify the purpose of "timezone", alleviate confusion in [ticket:2326] X-Git-Tag: rel_0_7_4~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25f77454bdbfbe994eeb92a9824f135a603a0776;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - clarify the purpose of "timezone", alleviate confusion in [ticket:2326] --- diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py index ae15a5d169..a4714d3d83 100644 --- a/lib/sqlalchemy/types.py +++ b/lib/sqlalchemy/types.py @@ -1488,6 +1488,14 @@ class DateTime(_DateAffinity, TypeEngine): __visit_name__ = 'datetime' def __init__(self, timezone=False): + """Construct a new :class:`.DateTime`. + + :param timezone: boolean. If True, and supported by the + backend, will produce 'TIMESTAMP WITH TIMEZONE'. For backends + that don't support timezone aware timestamps, has no + effect. + + """ self.timezone = timezone def get_dbapi_type(self, dbapi):