OracleTimeSpan Constructors

Definition

Initializes a new OracleTimeSpan structure.

Overloads

OracleTimeSpan(OracleTimeSpan)

Initializes a new OracleTimeSpan structure from an existing one.

OracleTimeSpan(Int64)

Initializes a new OracleTimeSpan structure to the specified number of ticks.

OracleTimeSpan(TimeSpan)

Initializes a new instance of the OracleTimeSpan structure with the specified TimeSpan.

OracleTimeSpan(Int32, Int32, Int32)

Initializes a new OracleTimeSpan structure to a specified number of hours, minutes, and seconds.

OracleTimeSpan(Int32, Int32, Int32, Int32)

Initializes a new OracleTimeSpan structure to a specified number of days, hours, minutes, and seconds.

OracleTimeSpan(Int32, Int32, Int32, Int32, Int32)

Initializes a new OracleTimeSpan structure to a specified number of days, hours, minutes, seconds, and milliseconds.

OracleTimeSpan(OracleTimeSpan)

Initializes a new OracleTimeSpan structure from an existing one.

C#
public OracleTimeSpan(System.Data.OracleClient.OracleTimeSpan from);

Parameters

from
OracleTimeSpan

An existing OracleTimeSpan structure from which to create the new structure.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

OracleTimeSpan(Int64)

Initializes a new OracleTimeSpan structure to the specified number of ticks.

C#
public OracleTimeSpan(long ticks);

Parameters

ticks
Int64

A time period expressed in 100-nanosecond units.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

OracleTimeSpan(TimeSpan)

Initializes a new instance of the OracleTimeSpan structure with the specified TimeSpan.

C#
public OracleTimeSpan(TimeSpan ts);

Parameters

ts
TimeSpan

The specified TimeSpan.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

OracleTimeSpan(Int32, Int32, Int32)

Initializes a new OracleTimeSpan structure to a specified number of hours, minutes, and seconds.

C#
public OracleTimeSpan(int hours, int minutes, int seconds);

Parameters

hours
Int32

Number of hours.

minutes
Int32

Number of minutes.

seconds
Int32

Number of seconds.

Exceptions

The parameters specify an OracleTimeSpan value less than OracleTimeSpan.MinValue or greater than OracleTimeSpan.MaxValue.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

OracleTimeSpan(Int32, Int32, Int32, Int32)

Initializes a new OracleTimeSpan structure to a specified number of days, hours, minutes, and seconds.

C#
public OracleTimeSpan(int days, int hours, int minutes, int seconds);

Parameters

days
Int32

Number of days.

hours
Int32

Number of hours.

minutes
Int32

Number of minutes.

seconds
Int32

Number of seconds.

Exceptions

The parameters specify an OracleTimeSpan value less than OracleTimeSpan.MinValue or greater than OracleTimeSpan.MaxValue.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

OracleTimeSpan(Int32, Int32, Int32, Int32, Int32)

Initializes a new OracleTimeSpan structure to a specified number of days, hours, minutes, seconds, and milliseconds.

C#
public OracleTimeSpan(int days, int hours, int minutes, int seconds, int milliseconds);

Parameters

days
Int32

Number of days.

hours
Int32

Number of hours.

minutes
Int32

Number of minutes.

seconds
Int32

Number of seconds.

milliseconds
Int32

Number of milliseconds.

Exceptions

The parameters specify an OracleTimeSpan value less than OracleTimeSpan.MinValue or greater than OracleTimeSpan.MaxValue.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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