1
<?xml version="1.0" encoding="utf-8"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
"DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<title>psycopg2.tz</title>
7
<link rel="stylesheet" href="epydoc.css" type="text/css" />
8
<script type="text/javascript">
10
function setFrame(url1, url2){
11
parent.frames[1].location.href = url1;
12
parent.frames[2].location.href = url2;
17
<body bgcolor="white" text="black" link="blue" vlink="#204080"
20
<!-- =========== START OF NAVBAR =========== -->
21
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
23
<th class="navbar"> <a class="navbar" href="psycopg2-module.html">Home</a> </th>
24
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
25
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
26
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
27
<th class="navbar" width="100%"></th>
30
<table width="100%" cellpadding="0" cellspacing="0">
33
<span class="breadcrumbs">
34
<a href="psycopg2-module.html">Package psycopg2</a> ::
38
<td><table cellpadding="0" cellspacing="0">
39
<tr><td align="right"><span class="options">[<a href="../private/psycopg2.tz-module.html">show private</a> | hide private]</span></td></tr>
40
<tr><td align="right"><span class="options">[<a href="frames.html" target="_top">frames</a> | <a href="psycopg2.tz-module.html" target="_top">no frames</a>]</span></td></tr>
44
<!-- =========== START OF MODULE DESCRIPTION =========== -->
45
<h2 class="module">Module psycopg2.tz</h2>
47
<p>tzinfo implementations for psycopg2</p>
48
<p>This module holds two different tzinfo implementations that can be used as
49
the 'tzinfo' argument to datetime constructors, directly passed to psycopg
50
functions or used to set the .tzinfo_factory attribute in cursors.</p>
53
<!-- =========== START OF CLASSES =========== -->
54
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
55
<tr bgcolor="#70b0f0" class="summary">
56
<th colspan="2">Classes</th></tr>
58
<strong><a href="psycopg2.tz.FixedOffsetTimezone-class.html"><code>FixedOffsetTimezone</code></a></strong></td>
59
<td>Fixed offset in minutes east from UTC.</td></tr>
61
<strong><a href="psycopg2.tz.LocalTimezone-class.html"><code>LocalTimezone</code></a></strong></td>
62
<td>Platform idea of local timezone.</td></tr>
66
<!-- =========== START OF VARIABLE SUMMARY =========== -->
67
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
68
<tr bgcolor="#70b0f0" class="summary">
69
<th colspan="2">Variable Summary</th></tr>
70
<tr><td align="right" valign="top" width="15%" class="vtype"><code>timedelta</code></td>
71
<td><strong><a href="psycopg2.tz-module.html#DSTDIFF"><code>DSTDIFF</code></a></strong> = <span title="datetime.timedelta(0, 3600)"><code>datetime.timedelta(0, 3600) </code>
73
<tr><td align="right" valign="top" width="15%" class="vtype"><code>LocalTimezone</code></td>
74
<td><strong><a href="psycopg2.tz-module.html#LOCAL"><code>LOCAL</code></a></strong> = <span title="<psycopg2.tz.LocalTimezone object at 0x00847090>"><code><psycopg2.tz.LocalTimezone object at 0x00847090> </code>
76
<tr><td align="right" valign="top" width="15%" class="vtype"><code>timedelta</code></td>
77
<td><strong><a href="psycopg2.tz-module.html#STDOFFSET"><code>STDOFFSET</code></a></strong> = <span title="datetime.timedelta(0, 3600)"><code>datetime.timedelta(0, 3600) </code>
79
<tr><td align="right" valign="top" width="15%" class="vtype"><code>timedelta</code></td>
80
<td><strong><a href="psycopg2.tz-module.html#ZERO"><code>ZERO</code></a></strong> = <span title="datetime.timedelta(0)"><code>datetime.timedelta(0) </code>
85
<!-- =========== START OF VARIABLE DETAILS =========== -->
86
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
87
<tr bgcolor="#70b0f0" class="details">
88
<th colspan="2">Variable Details</th></tr>
90
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
91
<a name="DSTDIFF"></a>
99
<code>timedelta</code>
102
<dt title="datetime.timedelta(0, 3600)">Value:</dt>
103
<dd title="datetime.timedelta(0, 3600)"><table><tr><td>
104
<pre class="variable">
105
datetime.timedelta(0, 3600) </pre>
106
</td></tr></table></dd>
109
</dl></td></tr></table>
110
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
119
<code>LocalTimezone</code>
122
<dt title="<psycopg2.tz.LocalTimezone object at 0x00847090>">Value:</dt>
123
<dd title="<psycopg2.tz.LocalTimezone object at 0x00847090>"><table><tr><td>
124
<pre class="variable">
125
<psycopg2.tz.LocalTimezone object at 0x00847090> </pre>
126
</td></tr></table></dd>
129
</dl></td></tr></table>
130
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
131
<a name="STDOFFSET"></a>
139
<code>timedelta</code>
142
<dt title="datetime.timedelta(0, 3600)">Value:</dt>
143
<dd title="datetime.timedelta(0, 3600)"><table><tr><td>
144
<pre class="variable">
145
datetime.timedelta(0, 3600) </pre>
146
</td></tr></table></dd>
149
</dl></td></tr></table>
150
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
159
<code>timedelta</code>
162
<dt title="datetime.timedelta(0)">Value:</dt>
163
<dd title="datetime.timedelta(0)"><table><tr><td>
164
<pre class="variable">
165
datetime.timedelta(0) </pre>
166
</td></tr></table></dd>
169
</dl></td></tr></table>
173
<!-- =========== START OF NAVBAR =========== -->
174
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
176
<th class="navbar"> <a class="navbar" href="psycopg2-module.html">Home</a> </th>
177
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
178
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
179
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
180
<th class="navbar" width="100%"></th>
184
<table border="0" cellpadding="0" cellspacing="0" width="100%">
186
<td align="left" class="footer">Generated by Epydoc 2.1 on Sat Jan 14 01:42:37 2006</td>
187
<td align="right" class="footer">
188
<a href="http://epydoc.sourceforge.net">http://epydoc.sf.net</a>