Class TimestampDataUtil

java.lang.Object
com.pervasive.datarush.tokens.scalar.TimestampDataUtil

@Deprecated public class TimestampDataUtil extends Object
Deprecated.
since 6.1; use DateTimeUtils instead.
Utilities for working with timestamp data.
See Also:
  • Constructor Details

    • TimestampDataUtil

      public TimestampDataUtil()
      Deprecated.
  • Method Details

    • epochTimeToTimestamp

      @Deprecated public static Timestamp epochTimeToTimestamp(long epochSecs, int subsecNanos, int offsetSecs)
      Deprecated.
      Converts an epoch time to a Java timestamp.
      Parameters:
      epochSecs - number of seconds since Java epoch
      subsecNanos - fractional portion of epoch time in nanoseconds
      offsetSecs - 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; use TimestampToken.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, or null if timestampText is null
      See Also: