Non-uniform timestamp format between querying and writing
See original GitHub issueI was trying to use queryRaw to do some data migration, and found that a point retrieved via .queryRaw
isn’t easily passed to .writePoint
.
queryRaw
(and query
as well) pass through the JSON returned by Influx, which serializes dates into RFC3339 strings.
The problem is that .writePoints
expects a Date object or a UNIX time.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Date/Time Types | Pivotal Greenplum Docs
When a timestamp with time zone value is output, it is always converted from UTC to the current timezone zone, and displayed as...
Read more >SQL - DATE and TIME Functions - The Data School
DATE and TIME values in PostgreSQL have a whole special set of functions and operators for their proper use. Learn how to use...
Read more >SQL DATE – Function, Query, Timestamp Example Format
It returns the date in the YYYY-MM-DD format. For instance, SELECT CURRENT_DATE() returns the date I started writing this article:
Read more >Exploring Postgres date formats and their different functions
In this article, we will explore Postgres dates, the different date data types, uses and functions. Date and timestamps are helpful for data ......
Read more >SQL Date Format | Advanced SQL - Mode Analytics
You might think that converting these values from string to date might solve the problem, but it's actually not quite so simple. Mode...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Also good to know about the time format in responses, since this may help optimize parsing:
Some libraries (e.g. HighCharts) require timestamps in UNIX format, so no parsing would be required.
Some docs on the (non)idempotence of timestamps would be useful.