InfluxDB.Client icon indicating copy to clipboard operation
InfluxDB.Client copied to clipboard

TimeStamp in nanosecond format

Open tomwimmenhove opened this issue 4 years ago • 1 comments

It would be nice to be able to get the timestamp of a row in the nanosecond format, so that we can use it in subsequent queries.

tomwimmenhove avatar May 08 '20 12:05 tomwimmenhove

The plugin does support the use of custom classes as timestamps. But you would have to implement such a class yourself since the DateTime struct from .NET does not support this level of precision.

You can register additional timestamp classes through this property on the InfluxClient:

https://github.com/MikaelGRA/InfluxDB.Client/blob/master/src/Vibrant.InfluxDB.Client/InfluxClient.cs#L119

MikaelGRA avatar May 16 '20 15:05 MikaelGRA