protected static OffsetTime getAsOffsetTime ( ResultSet rs , int index , ZoneId zoneId ) throws SQLException { Time time = rs . getTime ( index ) ; if ( time != null ) { return time . toLocalTime ( ) . atOffset ( zoneId . getRules ( ) . getOffset ( Instant . now ( ) ) ) ; } return null ; }
Get the column value as OffsetTime .