Is there a way to extract timezone information directly from an oracle.sql.TIMESTAMPTZ
object (selected from a TIMESTAMP WITH TIME ZONE
column)?
Ideally, I'd like to be able to pull the time zone information directly out of the object without jumping through potentially expensive or fragile hoops (like converting things into strings and parsing those).
You would think that there is an easy way to do this, but I have yet to find one. Oracle's documentation is not very helpful. It claims the last two bytes returned by TIMESTAMPTZ#toBytes()
encode the timezone information, but there is no description of our to actually decode this information.
Anyone out there have any experience dealing with this stuff?