OracleDateTime Constructors

Definition

Initializes a new instance of the OracleDateTime structure.

Overloads

OracleDateTime(OracleDateTime)

Initializes a new instance of the OracleDateTime structure from an existing OracleDateTime object.

OracleDateTime(DateTime)

Initializes a new instance of the OracleDateTime structure with the specified DateTime.

OracleDateTime(Int64)

Initializes a new instance of the OracleDateTime structure using the supplied number of ticks.

OracleDateTime(Int32, Int32, Int32)

Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, and day of the new structure.

OracleDateTime(Int32, Int32, Int32, Calendar)

Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, and calendar of the new structure.

OracleDateTime(Int32, Int32, Int32, Int32, Int32, Int32)

Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, and second of the new structure.

OracleDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Calendar)

Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, and second for the specified calendar of the new structure.

OracleDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, second, and millisecond of the new structure.

OracleDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Calendar)

Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, second, and millisecond for the specified calendar of the new structure.

OracleDateTime(OracleDateTime)

Initializes a new instance of the OracleDateTime structure from an existing OracleDateTime object.

public OracleDateTime (System.Data.OracleClient.OracleDateTime from);

Parameters

from
OracleDateTime

An existing OracleDateTime object from which to copy.

Applies to

.NET Framework 4.8.1 וגירסאות אחרות
מוצר גירסאות
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

OracleDateTime(DateTime)

Initializes a new instance of the OracleDateTime structure with the specified DateTime.

public OracleDateTime (DateTime dt);

Parameters

dt
DateTime

The specified DateTime.

Applies to

.NET Framework 4.8.1 וגירסאות אחרות
מוצר גירסאות
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

OracleDateTime(Int64)

Initializes a new instance of the OracleDateTime structure using the supplied number of ticks.

public OracleDateTime (long ticks);

Parameters

ticks
Int64

A time period expressed in 100-nanosecond units.

Applies to

.NET Framework 4.8.1 וגירסאות אחרות
מוצר גירסאות
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

OracleDateTime(Int32, Int32, Int32)

Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, and day of the new structure.

public OracleDateTime (int year, int month, int day);

Parameters

year
Int32

An integer value representing the year of the new OracleDateTime structure.

month
Int32

An integer value representing the month of the new OracleDateTime structure.

day
Int32

An integer value representing the day of the month of the new OracleDateTime structure.

Applies to

.NET Framework 4.8.1 וגירסאות אחרות
מוצר גירסאות
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

OracleDateTime(Int32, Int32, Int32, Calendar)

Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, and calendar of the new structure.

public OracleDateTime (int year, int month, int day, System.Globalization.Calendar calendar);

Parameters

year
Int32

An integer value representing the year of the new OracleDateTime structure.

month
Int32

An integer value representing the month of the new OracleDateTime structure.

day
Int32

An integer value representing the day of the month of the new OracleDateTime structure.

calendar
Calendar

The Calendar for this instance of OracleDateTime.

Applies to

.NET Framework 4.8.1 וגירסאות אחרות
מוצר גירסאות
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

OracleDateTime(Int32, Int32, Int32, Int32, Int32, Int32)

Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, and second of the new structure.

public OracleDateTime (int year, int month, int day, int hour, int minute, int second);

Parameters

year
Int32

An integer value representing the year of the new OracleDateTime structure.

month
Int32

An integer value representing the month of the new OracleDateTime structure.

day
Int32

An integer value representing the day of the month of the new OracleDateTime structure.

hour
Int32

An integer value representing the hour of the new OracleDateTime structure.

minute
Int32

An integer value representing the minute of the new OracleDateTime structure.

second
Int32

An integer value representing the second of the new OracleDateTime structure.

Applies to

.NET Framework 4.8.1 וגירסאות אחרות
מוצר גירסאות
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

OracleDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Calendar)

Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, and second for the specified calendar of the new structure.

public OracleDateTime (int year, int month, int day, int hour, int minute, int second, System.Globalization.Calendar calendar);

Parameters

year
Int32

An integer value representing the year of the new OracleDateTime structure.

month
Int32

An integer value representing the month of the new OracleDateTime structure.

day
Int32

An integer value representing the day of the month of the new OracleDateTime structure.

hour
Int32

An integer value representing the hour of the new OracleDateTime structure.

minute
Int32

An integer value representing the minute of the new OracleDateTime structure.

second
Int32

An integer value representing the second of the new OracleDateTime structure.

calendar
Calendar

The Calendar for this instance of OracleDateTime.

Applies to

.NET Framework 4.8.1 וגירסאות אחרות
מוצר גירסאות
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

OracleDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, second, and millisecond of the new structure.

public OracleDateTime (int year, int month, int day, int hour, int minute, int second, int millisecond);

Parameters

year
Int32

An integer value representing the year of the new OracleDateTime structure.

month
Int32

An integer value representing the month of the new OracleDateTime structure.

day
Int32

An integer value representing the day of the month of the new OracleDateTime structure.

hour
Int32

An integer value representing the hour of the new OracleDateTime structure.

minute
Int32

An integer value representing the minute of the new OracleDateTime structure.

second
Int32

An integer value representing the second of the new OracleDateTime structure.

millisecond
Int32

An integer value representing the millisecond of the new OracleDateTime structure.

Applies to

.NET Framework 4.8.1 וגירסאות אחרות
מוצר גירסאות
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

OracleDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Calendar)

Initializes a new instance of the OracleDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, second, and millisecond for the specified calendar of the new structure.

public OracleDateTime (int year, int month, int day, int hour, int minute, int second, int millisecond, System.Globalization.Calendar calendar);

Parameters

year
Int32

An integer value representing the year of the new OracleDateTime structure.

month
Int32

An integer value representing the month of the new OracleDateTime structure.

day
Int32

An integer value representing the day of the month of the new OracleDateTime structure.

hour
Int32

An integer value representing the hour of the new OracleDateTime structure.

minute
Int32

An integer value representing the minute of the new OracleDateTime structure.

second
Int32

An integer value representing the second of the new OracleDateTime structure.

millisecond
Int32

An integer value representing the millisecond of the new OracleDateTime structure.

calendar
Calendar

The Calendar for this instance of OracleDateTime.

Applies to

.NET Framework 4.8.1 וגירסאות אחרות
מוצר גירסאות
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1