- java.lang.Object
-
- com.pervasive.datarush.tokens.scalar.TimestampDataUtil
-
@Deprecated public class TimestampDataUtil extends Object
Deprecated.since 6.1; useDateTimeUtilsinstead.Utilities for working with timestamp data.- See Also:
TimestampTokenConverter
-
-
Constructor Summary
Constructors Constructor Description TimestampDataUtil()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TimestampepochTimeToTimestamp(long epochSecs, int subsecNanos, int offsetSecs)Deprecated.since 6.1; useDateTimeUtils.toTimestamp(long, int, int)insteadstatic TimestampTokenparse(String timestampText)Deprecated.since 6.1; useTimestampToken.parse(String)instead.
-
-
-
Method Detail
-
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 public static TimestampToken parse(String timestampText)
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:
TimestampTokenConverter.set(String)
-
-