OracleTimeStampTZ(DateTime, string)
This constructor creates a new instance of the OracleTimeStampTZ structure with the supplied DateTime value and the time zone data.
Declaration
// C# public OracleTimeStampTZ (DateTime value1, string timeZone);
Parameters
-
value1The supplied
DateTimevalue. -
timeZoneThe time zone data provided.
Exceptions
ArgumentException - The argument values of the parameters cannot be used to construct a valid OracleTimeStampTZ.
Remarks
timeZone can be either an hour offset, for example, 7:00, or a valid time zone region name that is provided in V$TIMEZONE_NAMES, such as US/Pacific. Time zone abbreviations are not supported.
If time zone is null, the OracleGlobalization.TimeZone of the thread is used.
Note:
PST is a time zone region name as well as a time zone abbreviation; therefore it is accepted by OracleTimeStampTZ.