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

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.

  <div class="infoboxnote" markdown="1">

  **See Also:**

  - "[Oracle.DataAccess.Types and Oracle.ManagedDataAccess.Types Namespaces](intro003.html#GUID-425C9EBA-CFFC-47FE-B490-604251714ACA)"

  - [OracleTimeStampTZ Structure](OracleTimeStampTZStructure.html#GUID-E3986815-29F1-493D-8A9A-BF8B70617925)

  - [OracleTimeStampTZ Members](TimeStampTZMembers.html#GUID-98A8C430-4CF8-432E-BE4E-8D6C4BA3F707)

  </div>