influxdata / influxdb-client-python

InfluxDB 2.0 python client
https://influxdb-client.readthedocs.io/en/stable/
MIT License
706 stars 185 forks source link

Add lower-to-higher precision conversion in _convert_timestamp #650

Closed rwader-swi closed 3 weeks ago

rwader-swi commented 5 months ago

Closes #

Proposed Changes

Currently the _convert_timestamp util only supports higher precision to lower precision time conversion. Some of the usecases might need the opposite, and instead of writing on our own we wish to use this already present utility. In my usecase the data is in floating point as seconds which I might want to convert to nanoseconds or other precision. So did some small changes.

Checklist

bednar commented 3 weeks ago

This PR has been closed because it has not had recent activity. Please reopen if this PR is still important to you and you want to continue with them.