java.lang.Object
com.pervasive.datarush.tokens.scalar.TimestampDataUtil
Deprecated.
Utilities for working with timestamp data.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TimestampepochTimeToTimestamp(long epochSecs, int subsecNanos, int offsetSecs) Deprecated.since 6.1; useDateTimeUtils.toTimestamp(long, int, int)insteadstatic TimestampTokenDeprecated.since 6.1; useTimestampToken.parse(String)instead.
-
Constructor Details
-
TimestampDataUtil
public TimestampDataUtil()Deprecated.
-
-
Method Details
-
epochTimeToTimestamp
@Deprecated public static Timestamp epochTimeToTimestamp(long epochSecs, int subsecNanos, int offsetSecs) Deprecated.since 6.1; useDateTimeUtils.toTimestamp(long, int, int)insteadConverts an epoch time to a Java timestamp.- Parameters:
epochSecs- number of seconds since Java epochsubsecNanos- fractional portion of epoch time in nanosecondsoffsetSecs- time zone + daylight saving time offset in seconds- Returns:
- a timestamp corresponding to the epoch time
-
parse
Deprecated.since 6.1; useTimestampToken.parse(String)instead.Parses an ISO 8601 timestamp string into a date value. If a time portion is provided, it is ignored.- Parameters:
timestampText- an ISO 8601 timestamp value- Returns:
- the timestamp value, as a
TimestampToken, ornullif timestampText isnull - See Also:
-
DateTimeUtilsinstead.