Skip to content

docs: add link about Nanosecond precision to usage page #315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ InfluxDB 2.0 client features
- `How to efficiently import large dataset`_
- `Efficiency write data from IOT sensor`_
- `How to use Jupyter + Pandas + InfluxDB 2`_
- Advanced Usage
- `Advanced Usage`_
- `Gzip support`_
- `Proxy configuration`_
- `Nanosecond precision`_
- `Delete data`_

Installation
Expand Down Expand Up @@ -1163,6 +1164,7 @@ For more info about how configure HTTP retry see details in `urllib3 documentati

Nanosecond precision
^^^^^^^^^^^^^^^^^^^^
.. marker-nanosecond-start

The Python's `datetime <https://docs.python.org/3/library/datetime.html>`_ doesn't support precision with nanoseconds
so the library during writes and queries ignores everything after microseconds.
Expand Down Expand Up @@ -1226,6 +1228,7 @@ that is replacement for python ``datetime.datetime`` object and also you should
"""
client.close()

.. marker-nanosecond-end

Local tests
-----------
Expand Down
6 changes: 6 additions & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ Proxy configuration
:start-after: marker-proxy-start
:end-before: marker-proxy-end

Nanosecond precision
^^^^^^^^^^^^^^^^^^^^
.. include:: ../README.rst
:start-after: marker-nanosecond-start
:end-before: marker-nanosecond-end

Debugging
^^^^^^^^^

Expand Down