You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the timestamp format for my time series container. is it possible to store this as a Long epoch and use epoch value when performing sampling query TIMESTAMP('" + longEpoch + "') instead of string format('2004-02-05T10:15:30.000Z').
The reason is I need to use UTC epoch format when working with time so it is less confusing and less error prone.
Also when i store data as Date originTimestamp which time zone does it use in the database
The text was updated successfully, but these errors were encountered:
We must use the row key column for time series container with Date type on Java.
How about the following method ?
Date now = new Date();
Date before = TimestampUtils.add(now, -6, TimeUnit.HOUR);
long epochNow = now.getTime(); // The unit is milliseconds.
long epochBefore = before.getTime(); // The unit is milliseconds.
String tql = "select * where originTimestamp > TO_TIMESTAMP_MS(" + epochBefore + ") and originTimestamp < TO_TIMESTAMP_MS(" + epochNow + ")");
I'm using
As the timestamp format for my time series container. is it possible to store this as a Long epoch and use epoch value when performing sampling query
TIMESTAMP('" + longEpoch + "')
instead of string format('2004-02-05T10:15:30.000Z').The reason is I need to use UTC epoch format when working with time so it is less confusing and less error prone.
Also when i store data as
Date originTimestamp
which time zone does it use in the databaseThe text was updated successfully, but these errors were encountered: