Class TimestampUtils

java.lang.Object
io.debezium.connector.oracle.util.TimestampUtils

public final class TimestampUtils extends Object
Author:
Chris Cranford
  • Field Details

    • GMT_ZONE_ID

      private static final ZoneId GMT_ZONE_ID
    • TIMESTAMP_FORMATTER

      private static final DateTimeFormatter TIMESTAMP_FORMATTER
    • TIMESTAMP_AM_PM_SHORT_FORMATTER

      private static final DateTimeFormatter TIMESTAMP_AM_PM_SHORT_FORMATTER
    • TO_TIMESTAMP

      private static final Pattern TO_TIMESTAMP
    • TO_DATE

      private static final Pattern TO_DATE
  • Constructor Details

    • TimestampUtils

      private TimestampUtils()
  • Method Details

    • convertTimestampNoZoneToInstant

      public static Instant convertTimestampNoZoneToInstant(String value)
      Convert the supplied timestamp without a timezone.
      Parameters:
      value - the string-value to be converted
      Returns:
      the returned converted value or null if the value could not be converted
    • toSqlCompliantFunctionCall

      public static String toSqlCompliantFunctionCall(String value)
      Converts the supplied string-value into a SQL compliant TO_TIMESTAMP string.
      Parameters:
      value - the string-value to be converted
      Returns:
      the TO_TIMESTAMP function call