From 25f77454bdbfbe994eeb92a9824f135a603a0776 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 14 Nov 2011 19:24:08 -0500 Subject: [PATCH] - clarify the purpose of "timezone", alleviate confusion in [ticket:2326] --- lib/sqlalchemy/types.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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): -- 2.47.2