OracleTimeSpan OracleTimeSpan OracleTimeSpan OracleTimeSpan Struct

定义

表示时间间隔,并且对应于 Oracle 9i INTERVAL DAY TO SECOND 数据类型。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
继承
OracleTimeSpanOracleTimeSpanOracleTimeSpanOracleTimeSpan
实现

注解

OracleINTERVAL DAY TO SECOND数据类型 (Oracle 9i 或更高版本) 包含的时间单位为天、 小时、 分钟和秒为单位的时间间隔,并且具有 11 个字节的固定的大小。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.

若要获取OracleTimeSpan对象,请调用GetOracleTimeSpan方法。To obtain an OracleTimeSpan object, call the GetOracleTimeSpan method.

构造函数

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

将新的 OracleTimeSpan 结构初始化为指定的刻度数。Initializes a new OracleTimeSpan structure to the specified number of ticks.

OracleTimeSpan(TimeSpan) 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)

将新的 OracleTimeSpan 结构初始化为指定的小时数、分钟数和秒数。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)

将新的 OracleTimeSpan 初始化为指定的天数、小时数、分钟数和秒数。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)

将新的 OracleTimeSpan 结构初始化为指定的天数、小时数、分钟数、秒数和毫秒数。Initializes a new OracleTimeSpan structure to a specified number of days, hours, minutes, seconds, and milliseconds.

字段

MaxValue MaxValue MaxValue MaxValue

表示 OracleTimeSpan 结构的最大有效日期值。Represents the maximum valid date value for an OracleTimeSpan structure.

MinValue MinValue MinValue MinValue

表示 OracleTimeSpan 结构的最小有效日期值。Represents the minimum valid date value for an OracleTimeSpan structure.

Null Null Null Null

表示可分配给 Value 结构实例的 OracleTimeSpan 属性的 null 值。Represents a null value that can be assigned to the Value property of an instance of the OracleTimeSpan structure.

属性

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

获取一个值,该值指示 Value 结构的 OracleTimeSpan 属性是否为 null。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

获取 OracleTimeSpan 结构的值。Gets the value of the OracleTimeSpan structure.

方法

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

将此 OracleTimeSpan 结构与所提供的对象进行比较,并返回其相对值的指示。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)

对两个 OracleTimeSpan 结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison of two OracleTimeSpan structures to determine whether they are equal.

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

将提供的对象参数与 Value 对象的 OracleTimeSpan 属性进行比较。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)

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)

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)

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)

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)

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)

将日期和时间的指定的 String 表示形式转换为其等效的 OracleTimeSpan 形式。Converts the specified String representation of a date and time to its OracleTimeSpan equivalent.

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

将此 OracleTimeSpan 结构转换为 StringConverts this OracleTimeSpan structure to a String.

操作员

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

OracleTimeSpan 结构转换为 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)

将字符串转换为 OracleTimeSpan 结构。Converts a string to an OracleTimeSpan structure.

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

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)

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)

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)

OracleTimeSpan 的两个实例进行比较,以确定第一个实例是否小于或等于第二个实例。Compares two instances of OracleTimeSpan to determine whether the first is less than or equal to the second.

适用于