Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > bf9ddee8352dabf2ba1d26636a349741 > files > 378

python2-pymongo-3.7.2-1.mga7.armv7hl.rpm


<!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="X-UA-Compatible" content="IE=Edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>tz_util – Utilities for dealing with timezones in Python &#8212; PyMongo 3.7.2 documentation</title>
    <link rel="stylesheet" href="../../_static/pydoctheme.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript" id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <script type="text/javascript" src="../../_static/language_data.js"></script>
    
    <script type="text/javascript" src="../../_static/sidebar.js"></script>
    
    <link rel="index" title="Index" href="../../genindex.html" />
    <link rel="search" title="Search" href="../../search.html" />
    <link rel="next" title="pymongo – Python driver for MongoDB" href="../pymongo/index.html" />
    <link rel="prev" title="timestamp – Tools for representing MongoDB internal Timestamps" href="timestamp.html" /> 
  </head><body>
    <div class="related" role="navigation" aria-label="related navigation">
      <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="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="../pymongo/index.html" title="pymongo – Python driver for MongoDB"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="timestamp.html" title="timestamp – Tools for representing MongoDB internal Timestamps"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="../../index.html">PyMongo 3.7.2 documentation</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="../index.html" >API Documentation</a> &#187;</li>
          <li class="nav-item nav-item-2"><a href="index.html" accesskey="U"><code class="docutils literal notranslate"><span class="pre">bson</span></code> – BSON (Binary JSON) Encoding and Decoding</a> &#187;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="module-bson.tz_util">
<span id="tz-util-utilities-for-dealing-with-timezones-in-python"></span><h1><code class="xref py py-mod docutils literal notranslate"><span class="pre">tz_util</span></code> – Utilities for dealing with timezones in Python<a class="headerlink" href="#module-bson.tz_util" title="Permalink to this headline">¶</a></h1>
<p>Timezone related utilities for BSON.</p>
<dl class="class">
<dt id="bson.tz_util.FixedOffset">
<em class="property">class </em><code class="descclassname">bson.tz_util.</code><code class="descname">FixedOffset</code><span class="sig-paren">(</span><em>offset</em>, <em>name</em><span class="sig-paren">)</span><a class="headerlink" href="#bson.tz_util.FixedOffset" title="Permalink to this definition">¶</a></dt>
<dd><p>Fixed offset timezone, in minutes east from UTC.</p>
<p>Implementation based from the Python <a class="reference external" href="http://docs.python.org/library/datetime.html#tzinfo-objects">standard library documentation</a>.
Defining __getinitargs__ enables pickling / copying.</p>
<dl class="method">
<dt id="bson.tz_util.FixedOffset.dst">
<code class="descname">dst</code><span class="sig-paren">(</span><em>dt</em><span class="sig-paren">)</span><a class="headerlink" href="#bson.tz_util.FixedOffset.dst" title="Permalink to this definition">¶</a></dt>
<dd><p>datetime -&gt; DST offset in minutes east of UTC.</p>
</dd></dl>

<dl class="method">
<dt id="bson.tz_util.FixedOffset.tzname">
<code class="descname">tzname</code><span class="sig-paren">(</span><em>dt</em><span class="sig-paren">)</span><a class="headerlink" href="#bson.tz_util.FixedOffset.tzname" title="Permalink to this definition">¶</a></dt>
<dd><p>datetime -&gt; string name of time zone.</p>
</dd></dl>

<dl class="method">
<dt id="bson.tz_util.FixedOffset.utcoffset">
<code class="descname">utcoffset</code><span class="sig-paren">(</span><em>dt</em><span class="sig-paren">)</span><a class="headerlink" href="#bson.tz_util.FixedOffset.utcoffset" title="Permalink to this definition">¶</a></dt>
<dd><p>datetime -&gt; minutes east of UTC (negative for west of UTC).</p>
</dd></dl>

</dd></dl>

<dl class="data">
<dt id="bson.tz_util.utc">
<code class="descclassname">bson.tz_util.</code><code class="descname">utc</code><em class="property"> = &lt;bson.tz_util.FixedOffset object&gt;</em><a class="headerlink" href="#bson.tz_util.utc" title="Permalink to this definition">¶</a></dt>
<dd><p>Fixed offset timezone representing UTC.</p>
</dd></dl>

</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h4>Previous topic</h4>
  <p class="topless"><a href="timestamp.html"
                        title="previous chapter"><code class="docutils literal notranslate"><span class="pre">timestamp</span></code> – Tools for representing MongoDB internal Timestamps</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="../pymongo/index.html"
                        title="next chapter"><code class="docutils literal notranslate"><span class="pre">pymongo</span></code> – Python driver for MongoDB</a></p>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="../../_sources/api/bson/tz_util.rst.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="../../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    </div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="../pymongo/index.html" title="pymongo – Python driver for MongoDB"
             >next</a> |</li>
        <li class="right" >
          <a href="timestamp.html" title="timestamp – Tools for representing MongoDB internal Timestamps"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="../../index.html">PyMongo 3.7.2 documentation</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="../index.html" >API Documentation</a> &#187;</li>
          <li class="nav-item nav-item-2"><a href="index.html" ><code class="docutils literal notranslate"><span class="pre">bson</span></code> – BSON (Binary JSON) Encoding and Decoding</a> &#187;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright MongoDB, Inc. 2008-present. MongoDB, Mongo, and the leaf logo are registered trademarks of MongoDB, Inc.
    </div>
  </body>
</html>