There is no longer any need for the date section since Python 2.4 is the

minimum release supported.
This commit is contained in:
Anthony Tuininga 2008-12-11 21:15:25 +00:00
parent e123e93576
commit 93276dc439
6 changed files with 9 additions and 204 deletions

View File

@ -1,52 +0,0 @@
.. _dateobj:
***********
Date Object
***********
.. note::
This object is an extension the DB API. It is returned whenever Oracle
date and timestamp (in Oracle 9i) columns are fetched and whenever the
constructor methods (Date(), Time(), Timestamp()) are called.
.. note::
As of Python 2.4 cx_Oracle returns the datetime objects from the
standard library datetime module instead of these objects.
.. attribute:: Date.year
This read-only attribute returns the year.
.. attribute:: Date.month
This read-only attribute returns the month.
.. attribute:: Date.day
This read-only attribute returns the day.
.. attribute:: Date.hour
This read-only attribute returns the hour.
.. attribute:: Date.minute
This read-only attribute returns the minute.
.. attribute:: Date.second
This read-only attribute returns the second.
.. attribute:: Date.fsecond
This read-only attribute returns the fractional second.

View File

@ -51,7 +51,6 @@ Contents:
variable
session_pool
lob
date
license
* :ref:`genindex`

View File

@ -1,126 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Date Object &mdash; cx_Oracle v5.0 documentation</title>
<link rel="stylesheet" href="_static/default.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '5.0'
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/interface.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="contents" title="Global table of contents" href="contents.html" />
<link rel="index" title="Global index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="top" title="cx_Oracle v5.0 documentation" href="index.html" />
<link rel="next" title="License" href="license.html" />
<link rel="prev" title="LOB Objects" href="lob.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px"><a href="genindex.html" title="General Index" accesskey="I">index</a></li>
<li class="right"><a href="modindex.html" title="Global Module Index" accesskey="M">modules</a> |</li>
<li class="right"><a href="license.html" title="License" accesskey="N">next</a> |</li>
<li class="right"><a href="lob.html" title="LOB Objects" accesskey="P">previous</a> |</li>
<li><a href="index.html">cx_Oracle v5.0 documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section">
<h1 id="date-object"><span id="dateobj"></span>Date Object<a class="headerlink" href="#date-object" title="Permalink to this headline"></a></h1>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">This object is an extension the DB API. It is returned whenever Oracle
date and timestamp (in Oracle 9i) columns are fetched and whenever the
constructor methods (Date(), Time(), Timestamp()) are called.</p>
</div>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">As of Python 2.4 cx_Oracle returns the datetime objects from the
standard library datetime module instead of these objects.</p>
</div>
<dl class="attribute">
<dt id="Date.year">
<!--#Date.year#--><tt class="descclassname">Date.</tt><tt class="descname">year</tt><a class="headerlink" href="#Date.year" title="Permalink to this definition"></a></dt>
<dd>This read-only attribute returns the year.</dd></dl>
<dl class="attribute">
<dt id="Date.month">
<!--#Date.month#--><tt class="descclassname">Date.</tt><tt class="descname">month</tt><a class="headerlink" href="#Date.month" title="Permalink to this definition"></a></dt>
<dd>This read-only attribute returns the month.</dd></dl>
<dl class="attribute">
<dt id="Date.day">
<!--#Date.day#--><tt class="descclassname">Date.</tt><tt class="descname">day</tt><a class="headerlink" href="#Date.day" title="Permalink to this definition"></a></dt>
<dd>This read-only attribute returns the day.</dd></dl>
<dl class="attribute">
<dt id="Date.hour">
<!--#Date.hour#--><tt class="descclassname">Date.</tt><tt class="descname">hour</tt><a class="headerlink" href="#Date.hour" title="Permalink to this definition"></a></dt>
<dd>This read-only attribute returns the hour.</dd></dl>
<dl class="attribute">
<dt id="Date.minute">
<!--#Date.minute#--><tt class="descclassname">Date.</tt><tt class="descname">minute</tt><a class="headerlink" href="#Date.minute" title="Permalink to this definition"></a></dt>
<dd>This read-only attribute returns the minute.</dd></dl>
<dl class="attribute">
<dt id="Date.second">
<!--#Date.second#--><tt class="descclassname">Date.</tt><tt class="descname">second</tt><a class="headerlink" href="#Date.second" title="Permalink to this definition"></a></dt>
<dd>This read-only attribute returns the second.</dd></dl>
<dl class="attribute">
<dt id="Date.fsecond">
<!--#Date.fsecond#--><tt class="descclassname">Date.</tt><tt class="descname">fsecond</tt><a class="headerlink" href="#Date.fsecond" title="Permalink to this definition"></a></dt>
<dd>This read-only attribute returns the fractional second.</dd></dl>
</div>
</div>
</div>
</div>
<div class="sidebar">
<div class="sidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="lob.html" title="previous chapter">LOB Objects</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="license.html" title="next chapter">License</a></p>
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" size="18" /> <input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px"><a href="genindex.html" title="General Index" accesskey="I">index</a></li>
<li class="right"><a href="modindex.html" title="Global Module Index" accesskey="M">modules</a> |</li>
<li class="right"><a href="license.html" title="License" accesskey="N">next</a> |</li>
<li class="right"><a href="lob.html" title="LOB Objects" accesskey="P">previous</a> |</li>
<li><a href="index.html">cx_Oracle v5.0 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2008, Anthony Tuininga.
Last updated on Dec 11, 2008.
</div>
</body>
</html>

View File

@ -36,7 +36,7 @@
<h1 id="index">Index</h1>
<a href="#_"><strong>_</strong></a> | <a href="#A"><strong>A</strong></a> | <a href="#B"><strong>B</strong></a> | <a href="#C"><strong>C</strong></a> | <a href="#D"><strong>D</strong></a> | <a href="#E"><strong>E</strong></a> | <a href="#F"><strong>F</strong></a> | <a href="#G"><strong>G</strong></a> | <a href="#H"><strong>H</strong></a> | <a href="#I"><strong>I</strong></a> | <a href="#L"><strong>L</strong></a> | <a href="#M"><strong>M</strong></a> | <a href="#N"><strong>N</strong></a> | <a href="#O"><strong>O</strong></a> | <a href="#P"><strong>P</strong></a> | <a href="#R"><strong>R</strong></a> | <a href="#S"><strong>S</strong></a> | <a href="#T"><strong>T</strong></a> | <a href="#U"><strong>U</strong></a> | <a href="#V"><strong>V</strong></a> | <a href="#W"><strong>W</strong></a> | <a href="#Y"><strong>Y</strong></a>
<a href="#_"><strong>_</strong></a> | <a href="#A"><strong>A</strong></a> | <a href="#B"><strong>B</strong></a> | <a href="#C"><strong>C</strong></a> | <a href="#D"><strong>D</strong></a> | <a href="#E"><strong>E</strong></a> | <a href="#F"><strong>F</strong></a> | <a href="#G"><strong>G</strong></a> | <a href="#H"><strong>H</strong></a> | <a href="#I"><strong>I</strong></a> | <a href="#L"><strong>L</strong></a> | <a href="#M"><strong>M</strong></a> | <a href="#N"><strong>N</strong></a> | <a href="#O"><strong>O</strong></a> | <a href="#P"><strong>P</strong></a> | <a href="#R"><strong>R</strong></a> | <a href="#S"><strong>S</strong></a> | <a href="#T"><strong>T</strong></a> | <a href="#U"><strong>U</strong></a> | <a href="#V"><strong>V</strong></a> | <a href="#W"><strong>W</strong></a>
<hr />
@ -121,7 +121,6 @@
<dt><a href="module.html#cx_Oracle.Date">Date() (in module cx_Oracle)</a></dt>
<dt><a href="module.html#cx_Oracle.DateFromTicks">DateFromTicks() (in module cx_Oracle)</a></dt>
<dt><a href="module.html#cx_Oracle.DATETIME">DATETIME (in module cx_Oracle)</a></dt>
<dt><a href="date.html#Date.day">day (Date attribute)</a></dt>
<dt><a href="module.html#cx_Oracle.DBSHUTDOWN_ABORT">DBSHUTDOWN_ABORT (in module cx_Oracle)</a></dt>
<dt><a href="module.html#cx_Oracle.DBSHUTDOWN_FINAL">DBSHUTDOWN_FINAL (in module cx_Oracle)</a></dt></dl></td><td width="33%" valign="top"><dl>
<dt><a href="module.html#cx_Oracle.DBSHUTDOWN_IMMEDIATE">DBSHUTDOWN_IMMEDIATE (in module cx_Oracle)</a></dt>
@ -155,14 +154,13 @@
<dt><a href="cursor.html#Cursor.fetchraw">fetchraw() (Cursor method)</a></dt>
<dt><a href="cursor.html#Cursor.fetchvars">fetchvars (Cursor attribute)</a></dt>
<dt><a href="lob.html#LOB.fileexists">fileexists() (LOB method)</a></dt>
<dt><a href="module.html#cx_Oracle.FIXED_CHAR">FIXED_CHAR (in module cx_Oracle)</a></dt>
<dt><a href="module.html#cx_Oracle.FNCODE_BINDBYNAME">FNCODE_BINDBYNAME (in module cx_Oracle)</a></dt></dl></td><td width="33%" valign="top"><dl>
<dt><a href="module.html#cx_Oracle.FIXED_CHAR">FIXED_CHAR (in module cx_Oracle)</a></dt></dl></td><td width="33%" valign="top"><dl>
<dt><a href="module.html#cx_Oracle.FNCODE_BINDBYNAME">FNCODE_BINDBYNAME (in module cx_Oracle)</a></dt>
<dt><a href="module.html#cx_Oracle.FNCODE_BINDBYPOS">FNCODE_BINDBYPOS (in module cx_Oracle)</a></dt>
<dt><a href="module.html#cx_Oracle.FNCODE_DEFINEBYPOS">FNCODE_DEFINEBYPOS (in module cx_Oracle)</a></dt>
<dt><a href="module.html#cx_Oracle.FNCODE_STMTEXECUTE">FNCODE_STMTEXECUTE (in module cx_Oracle)</a></dt>
<dt><a href="module.html#cx_Oracle.FNCODE_STMTFETCH">FNCODE_STMTFETCH (in module cx_Oracle)</a></dt>
<dt><a href="module.html#cx_Oracle.FNCODE_STMTPREPARE">FNCODE_STMTPREPARE (in module cx_Oracle)</a></dt>
<dt><a href="date.html#Date.fsecond">fsecond (Date attribute)</a></dt>
</dl></td></tr></table>
<h2 id="G">G</h2>
@ -178,8 +176,7 @@
<table width="100%" class="indextable"><tr><td width="33%" valign="top">
<dl>
<dt><a href="session_pool.html#SessionPool.homogeneous">homogeneous (SessionPool attribute)</a></dt>
<dt><a href="date.html#Date.hour">hour (Date attribute)</a></dt></dl></td><td width="33%" valign="top"><dl>
<dt><a href="session_pool.html#SessionPool.homogeneous">homogeneous (SessionPool attribute)</a></dt></dl></td><td width="33%" valign="top"><dl>
</dl></td></tr></table>
<h2 id="I">I</h2>
@ -215,12 +212,10 @@
<dt><a href="module.html#cx_Oracle.makedsn">makedsn() (in module cx_Oracle)</a></dt>
<dt><a href="session_pool.html#SessionPool.max">max (SessionPool attribute)</a></dt>
<dt><a href="connection.html#Connection.maxBytesPerCharacter">maxBytesPerCharacter (Connection attribute)</a></dt>
<dt><a href="variable.html#Variable.maxlength">maxlength (Variable attribute)</a></dt>
<dt><a href="module.html#cx_Oracle._Error.message">message (cx_Oracle._Error attribute)</a></dt></dl></td><td width="33%" valign="top"><dl>
<dt><a href="variable.html#Variable.maxlength">maxlength (Variable attribute)</a></dt></dl></td><td width="33%" valign="top"><dl>
<dt><a href="module.html#cx_Oracle._Error.message">message (cx_Oracle._Error attribute)</a></dt>
<dt><a href="session_pool.html#SessionPool.min">min (SessionPool attribute)</a></dt>
<dt><a href="date.html#Date.minute">minute (Date attribute)</a></dt>
<dt><a href="connection.html#Connection.module">module (Connection attribute)</a></dt>
<dt><a href="date.html#Date.month">month (Date attribute)</a></dt>
</dl></td></tr></table>
<h2 id="N">N</h2>
@ -288,7 +283,6 @@
<table width="100%" class="indextable"><tr><td width="33%" valign="top">
<dl>
<dt><a href="date.html#Date.second">second (Date attribute)</a></dt>
<dt><a href="module.html#cx_Oracle.SessionPool">SessionPool() (in module cx_Oracle)</a></dt>
<dt><a href="lob.html#LOB.setfilename">setfilename() (LOB method)</a></dt>
<dt><a href="cursor.html#Cursor.setinputsizes">setinputsizes() (Cursor method)</a></dt>
@ -296,8 +290,8 @@
<dt><a href="variable.html#Variable.setvalue">setvalue() (Variable method)</a></dt>
<dt><a href="connection.html#Connection.shutdown">shutdown() (Connection method)</a></dt>
<dt><a href="lob.html#LOB.size">size() (LOB method)</a></dt>
<dt><a href="module.html#cx_Oracle.SPOOL_ATTRVAL_FORCEGET">SPOOL_ATTRVAL_FORCEGET (in module cx_Oracle)</a></dt></dl></td><td width="33%" valign="top"><dl>
<dt><a href="module.html#cx_Oracle.SPOOL_ATTRVAL_NOWAIT">SPOOL_ATTRVAL_NOWAIT (in module cx_Oracle)</a></dt>
<dt><a href="module.html#cx_Oracle.SPOOL_ATTRVAL_FORCEGET">SPOOL_ATTRVAL_FORCEGET (in module cx_Oracle)</a></dt>
<dt><a href="module.html#cx_Oracle.SPOOL_ATTRVAL_NOWAIT">SPOOL_ATTRVAL_NOWAIT (in module cx_Oracle)</a></dt></dl></td><td width="33%" valign="top"><dl>
<dt><a href="module.html#cx_Oracle.SPOOL_ATTRVAL_WAIT">SPOOL_ATTRVAL_WAIT (in module cx_Oracle)</a></dt>
<dt><a href="connection.html#Connection.startup">startup() (Connection method)</a></dt>
<dt><a href="cursor.html#Cursor.statement">statement (Cursor attribute)</a></dt>
@ -358,13 +352,6 @@
<dt><a href="lob.html#LOB.write">write() (LOB method)</a></dt></dl></td><td width="33%" valign="top"><dl>
</dl></td></tr></table>
<h2 id="Y">Y</h2>
<table width="100%" class="indextable"><tr><td width="33%" valign="top">
<dl>
<dt><a href="date.html#Date.year">year (Date attribute)</a></dt></dl></td><td width="33%" valign="top"><dl>
</dl></td></tr></table>
</div>

View File

@ -84,9 +84,6 @@ for more information on the Python database API specification.</p>
<li><a class="reference" href="lob.html">LOB Objects</a></li>
</ul>
<ul>
<li><a class="reference" href="date.html">Date Object</a></li>
</ul>
<ul>
<li><a class="reference" href="license.html">License</a></li>
</ul>
<ul class="simple">

File diff suppressed because one or more lines are too long