Redigera

Dela via


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);
public OracleDateTime (System.Data.OracleClient.OracleDateTime from);
new System.Data.OracleClient.OracleDateTime : System.Data.OracleClient.OracleDateTime -> System.Data.OracleClient.OracleDateTime
Public Sub New (from As OracleDateTime)

Parameters

from
OracleDateTime

An existing OracleDateTime object from which to copy.

Applies to

OracleDateTime(DateTime)

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

public:
 OracleDateTime(DateTime dt);
public OracleDateTime (DateTime dt);
new System.Data.OracleClient.OracleDateTime : DateTime -> System.Data.OracleClient.OracleDateTime
Public Sub New (dt As DateTime)

Parameters

dt
DateTime

The specified DateTime.

Applies to

OracleDateTime(Int64)

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

public:
 OracleDateTime(long ticks);
public OracleDateTime (long ticks);
new System.Data.OracleClient.OracleDateTime : int64 -> System.Data.OracleClient.OracleDateTime
Public Sub New (ticks As Long)

Parameters

ticks
Int64

A time period expressed in 100-nanosecond units.

Applies to

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);
public OracleDateTime (int year, int month, int day);
new System.Data.OracleClient.OracleDateTime : int * int * int -> System.Data.OracleClient.OracleDateTime
Public Sub New (year As Integer, month As Integer, day As Integer)

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

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);
public OracleDateTime (int year, int month, int day, System.Globalization.Calendar calendar);
new System.Data.OracleClient.OracleDateTime : int * int * int * System.Globalization.Calendar -> System.Data.OracleClient.OracleDateTime
Public Sub New (year As Integer, month As Integer, day As Integer, calendar As 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

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);
public OracleDateTime (int year, int month, int day, int hour, int minute, int second);
new System.Data.OracleClient.OracleDateTime : int * int * int * int * int * int -> System.Data.OracleClient.OracleDateTime
Public Sub New (year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer)

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

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);
public OracleDateTime (int year, int month, int day, int hour, int minute, int second, System.Globalization.Calendar calendar);
new System.Data.OracleClient.OracleDateTime : int * int * int * int * int * int * System.Globalization.Calendar -> System.Data.OracleClient.OracleDateTime
Public Sub New (year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, calendar As 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

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);
public OracleDateTime (int year, int month, int day, int hour, int minute, int second, int millisecond);
new System.Data.OracleClient.OracleDateTime : int * int * int * int * int * int * int -> System.Data.OracleClient.OracleDateTime
Public Sub New (year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, millisecond As Integer)

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

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);
public OracleDateTime (int year, int month, int day, int hour, int minute, int second, int millisecond, System.Globalization.Calendar calendar);
new System.Data.OracleClient.OracleDateTime : int * int * int * int * int * int * int * System.Globalization.Calendar -> System.Data.OracleClient.OracleDateTime
Public Sub New (year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, millisecond As Integer, calendar As 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