private def findTimeZoneIndex()

in driver/src/main/scala/com/datastax/spark/connector/types/TimestampParser.scala [95:105]


  private def findTimeZoneIndex(date: String): Int = {
    var found = -1
    var currentIndex = Math.max(date.length - MaxZoneLength, TimeSeparatorPosition) // there is no need to look for TZ in date part
    while (found < 0 && currentIndex < date.length) {
      if (date.charAt(currentIndex) == '+' || date.charAt(currentIndex) == '-' || date.charAt(currentIndex) == 'Z') {
        found = currentIndex
      }
      currentIndex = currentIndex + 1
    }
    found
  }