mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-25 13:10:32 +03:00
Don't use its objects anymore in the tests (except for the tests for the objects themselves).
20 lines
646 B
ReStructuredText
20 lines
646 B
ReStructuredText
`psycopg2.tz` -- ``tzinfo`` implementations for Psycopg 2
|
|
===============================================================
|
|
|
|
.. sectionauthor:: Daniele Varrazzo <daniele.varrazzo@gmail.com>
|
|
|
|
.. module:: psycopg2.tz
|
|
|
|
.. deprecated:: 2.9
|
|
The module will be dropped in psycopg 2.10. Use `datetime.timezone`
|
|
instead.
|
|
|
|
This module holds two different tzinfo implementations that can be used as the
|
|
`tzinfo` argument to `~datetime.datetime` constructors, directly passed to
|
|
Psycopg functions or used to set the `cursor.tzinfo_factory` attribute in
|
|
cursors.
|
|
|
|
.. autoclass:: psycopg2.tz.FixedOffsetTimezone
|
|
|
|
.. autoclass:: psycopg2.tz.LocalTimezone
|