OracleTimeSpan OracleTimeSpan OracleTimeSpan OracleTimeSpan Struct

Definition

Represents a time interval and corresponds to the Oracle 9i INTERVAL DAY TO SECOND data type.

public value class OracleTimeSpan : IComparable, System::Data::SqlTypes::INullable
public struct OracleTimeSpan : IComparable, System.Data.SqlTypes.INullable
type OracleTimeSpan = struct
    interface INullable
Public Structure OracleTimeSpan
Implements IComparable, INullable
Inheritance
OracleTimeSpanOracleTimeSpanOracleTimeSpanOracleTimeSpan
Implements

Remarks

The Oracle INTERVAL DAY TO SECOND data type (Oracle 9i or later) contains an interval of time in days, hours, minutes, and seconds, and has a fixed size of 11 bytes.

To obtain an OracleTimeSpan object, call the GetOracleTimeSpan method.

Constructors

OracleTimeSpan(OracleTimeSpan) OracleTimeSpan(OracleTimeSpan) OracleTimeSpan(OracleTimeSpan) OracleTimeSpan(OracleTimeSpan)

Initializes a new OracleTimeSpan structure from an existing one.

OracleTimeSpan(Int64) OracleTimeSpan(Int64) OracleTimeSpan(Int64) OracleTimeSpan(Int64)

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

OracleTimeSpan(TimeSpan) OracleTimeSpan(TimeSpan) OracleTimeSpan(TimeSpan) OracleTimeSpan(TimeSpan)

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

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

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

OracleTimeSpan(Int32, Int32, Int32, Int32) OracleTimeSpan(Int32, Int32, Int32, Int32) OracleTimeSpan(Int32, Int32, Int32, Int32) 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) OracleTimeSpan(Int32, Int32, Int32, Int32, Int32) OracleTimeSpan(Int32, Int32, Int32, Int32, Int32) OracleTimeSpan(Int32, Int32, Int32, Int32, Int32)

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

Fields

MaxValue MaxValue MaxValue MaxValue

Represents the maximum valid date value for an OracleTimeSpan structure.

MinValue MinValue MinValue MinValue

Represents the minimum valid date value for an OracleTimeSpan structure.

Null Null Null Null

Represents a null value that can be assigned to the Value property of an instance of the OracleTimeSpan structure.

Properties

Days Days Days Days

Gets the number of whole days represented by this instance.

Hours Hours Hours Hours

Gets the number of whole hours represented by this instance.

IsNull IsNull IsNull IsNull

Gets a value indicating whether the Value property of the OracleTimeSpan structure is null.

Milliseconds Milliseconds Milliseconds Milliseconds

Gets the number of whole milliseconds represented by this instance.

Minutes Minutes Minutes Minutes

Gets the number of whole minutes represented by this instance.

Seconds Seconds Seconds Seconds

Gets the number of whole seconds represented by this instance.

Value Value Value Value

Gets the value of the OracleTimeSpan structure.

Methods

CompareTo(Object) CompareTo(Object) CompareTo(Object) CompareTo(Object)

Compares this OracleTimeSpan structure to the supplied object and returns an indication of their relative values.

Equals(OracleTimeSpan, OracleTimeSpan) Equals(OracleTimeSpan, OracleTimeSpan) Equals(OracleTimeSpan, OracleTimeSpan) Equals(OracleTimeSpan, OracleTimeSpan)

Performs a logical comparison of two OracleTimeSpan structures to determine whether they are equal.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Compares the supplied object parameter to the Value property of the OracleTimeSpan object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Gets the hash code for this instance.

GreaterThan(OracleTimeSpan, OracleTimeSpan) GreaterThan(OracleTimeSpan, OracleTimeSpan) GreaterThan(OracleTimeSpan, OracleTimeSpan) GreaterThan(OracleTimeSpan, OracleTimeSpan)

Compares two instances of OracleTimeSpan to determine whether the first is greater than the second.

GreaterThanOrEqual(OracleTimeSpan, OracleTimeSpan) GreaterThanOrEqual(OracleTimeSpan, OracleTimeSpan) GreaterThanOrEqual(OracleTimeSpan, OracleTimeSpan) GreaterThanOrEqual(OracleTimeSpan, OracleTimeSpan)

Compares two instances of OracleTimeSpan to determine whether the first is greater than or equal to the second.

LessThan(OracleTimeSpan, OracleTimeSpan) LessThan(OracleTimeSpan, OracleTimeSpan) LessThan(OracleTimeSpan, OracleTimeSpan) LessThan(OracleTimeSpan, OracleTimeSpan)

Compares two instances of OracleTimeSpan to determine whether the first is less than the second.

LessThanOrEqual(OracleTimeSpan, OracleTimeSpan) LessThanOrEqual(OracleTimeSpan, OracleTimeSpan) LessThanOrEqual(OracleTimeSpan, OracleTimeSpan) LessThanOrEqual(OracleTimeSpan, OracleTimeSpan)

Compares two instances of OracleTimeSpan to determine whether the first is less than or equal to the second.

NotEquals(OracleTimeSpan, OracleTimeSpan) NotEquals(OracleTimeSpan, OracleTimeSpan) NotEquals(OracleTimeSpan, OracleTimeSpan) NotEquals(OracleTimeSpan, OracleTimeSpan)

Performs a logical comparison of two instances of OracleTimeSpan to determine whether they are not equal.

Parse(String) Parse(String) Parse(String) Parse(String)

Converts the specified String representation of a date and time to its OracleTimeSpan equivalent.

ToString() ToString() ToString() ToString()

Converts this OracleTimeSpan structure to a String.

Operators

Equality(OracleTimeSpan, OracleTimeSpan) Equality(OracleTimeSpan, OracleTimeSpan) Equality(OracleTimeSpan, OracleTimeSpan) Equality(OracleTimeSpan, OracleTimeSpan)

Performs a logical comparison of two OracleTimeSpan structures to determine whether they are equal.

Explicit(OracleTimeSpan to TimeSpan) Explicit(OracleTimeSpan to TimeSpan) Explicit(OracleTimeSpan to TimeSpan) Explicit(OracleTimeSpan to TimeSpan)

Converts an OracleTimeSpan structure to a TimeSpan structure.

Explicit(String to OracleTimeSpan) Explicit(String to OracleTimeSpan) Explicit(String to OracleTimeSpan) Explicit(String to OracleTimeSpan)

Converts a string to an OracleTimeSpan structure.

GreaterThan(OracleTimeSpan, OracleTimeSpan) GreaterThan(OracleTimeSpan, OracleTimeSpan) GreaterThan(OracleTimeSpan, OracleTimeSpan) GreaterThan(OracleTimeSpan, OracleTimeSpan)

Compares two instances of OracleTimeSpan to determine whether the first is greater than the second.

GreaterThanOrEqual(OracleTimeSpan, OracleTimeSpan) GreaterThanOrEqual(OracleTimeSpan, OracleTimeSpan) GreaterThanOrEqual(OracleTimeSpan, OracleTimeSpan) GreaterThanOrEqual(OracleTimeSpan, OracleTimeSpan)

Compares two instances of OracleTimeSpan to determine whether the first is greater than or equal to the second.

Inequality(OracleTimeSpan, OracleTimeSpan) Inequality(OracleTimeSpan, OracleTimeSpan) Inequality(OracleTimeSpan, OracleTimeSpan) Inequality(OracleTimeSpan, OracleTimeSpan)

Performs a logical comparison of two instances of OracleTimeSpan to determine whether they are equal.

LessThan(OracleTimeSpan, OracleTimeSpan) LessThan(OracleTimeSpan, OracleTimeSpan) LessThan(OracleTimeSpan, OracleTimeSpan) LessThan(OracleTimeSpan, OracleTimeSpan)

Compares two instances of OracleTimeSpan to determine whether the first is less than the second.

LessThanOrEqual(OracleTimeSpan, OracleTimeSpan) LessThanOrEqual(OracleTimeSpan, OracleTimeSpan) LessThanOrEqual(OracleTimeSpan, OracleTimeSpan) LessThanOrEqual(OracleTimeSpan, OracleTimeSpan)

Compares two instances of OracleTimeSpan to determine whether the first is less than or equal to the second.

Applies to