Skip to content
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

Nanoseconds ignored when writing Points with RFC string format #124

Closed
russorat opened this issue Jul 6, 2020 · 2 comments · Fixed by #141
Closed

Nanoseconds ignored when writing Points with RFC string format #124

russorat opened this issue Jul 6, 2020 · 2 comments · Fixed by #141
Labels
bug Something isn't working
Milestone

Comments

@russorat
Copy link
Contributor

russorat commented Jul 6, 2020

See: influxdata/influxdb-python#829 (comment)

I believe this library suffers the same problem.

@russorat russorat added the bug Something isn't working label Jul 6, 2020
@bednar
Copy link
Contributor

bednar commented Jul 8, 2020

As you mentioned the datetime has a precision to microseconds and also almost all time libraries are without supports of nanoseconds:

We will have to use something like pandas timestamp:

>>> import pandas as pd
>>> pd.to_datetime('1996-02-25T21:20:00.001001231Z', unit='ns')
Timestamp('1996-02-25 21:20:00.001001231+0000', tz='UTC')

@bednar
Copy link
Contributor

bednar commented Aug 7, 2020

Hi @fcoetzee,

we preparing workaround by pandas.Timestamp.

For detail info see #141 or this example nanosecond_precision.py.

Regards

@bednar bednar added this to the 1.10.0 milestone Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants