public interface TimestampValued extends ScalarValued
TokenValued object containing a timestamp value.TokenTypeConstant.TIMESTAMP| Modifier and Type | Method and Description |
|---|---|
long |
asEpochSecs()
Gets the contained timestamp value as the number of seconds since
Java epoch (January 1, 1970 00:00:00 GMT).
|
Timestamp |
asTimestamp()
Gets the contained timestamp value as a
java.sql.Timestamp
relative to the default time zone. |
int |
offsetSecs()
Gets the time zone and daylight saving time offset of the contained
timestamp value, in seconds.
|
int |
subsecNanos()
Gets the subsecond portion of the contained timestamp value.
|
getType, isZeroisNullTimestamp asTimestamp()
java.sql.Timestamp
relative to the default time zone. The time zone used by
TimeZone.getDefault() is used.java.sql.Timestamp.
If null valued, as indicated by TokenValued.isNull(),
null is returned.long asEpochSecs()
subsecNanos()
in conjunction with this method.TokenValued.isNull(),
0 is returned.subsecNanos()int subsecNanos()
asEpochSecs(). Thus the value asEpochSecs()
* 1000000000 + subsecNanos() represents the number of
nanoseconds since Java epoch.TokenValued.isNull(),
0 is returned.asEpochSecs()int offsetSecs()
TokenValued.isNull(), 0 is returned.asEpochSecs()Copyright © 2015 Actian Corporation. All Rights Reserved.