OracleTimeSpan 結構

定義

表示時間間隔並對應至 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
繼承
OracleTimeSpan
實作

備註

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

將新的 OracleTimeSpan 結構初始化為指定的時數、分鐘數和秒數。Initializes a new OracleTimeSpan structure to a specified number of hours, minutes, and seconds.

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 初始化為指定的天數、時數、分鐘數、秒數和毫秒數。Initializes a new OracleTimeSpan structure to a specified number of days, hours, minutes, seconds, and milliseconds.

OracleTimeSpan(Int64)

將新的 OracleTimeSpan 結構初始化為指定的刻度數。Initializes a new OracleTimeSpan structure to the specified number of ticks.

OracleTimeSpan(OracleTimeSpan)

從現有的 OracleTimeSpan 結構初始化新的 OracleTimeSpan 結構。Initializes a new OracleTimeSpan structure from an existing one.

OracleTimeSpan(TimeSpan)

使用指定的 OracleTimeSpan,初始化 TimeSpan 結構的新執行個體。Initializes a new instance of the OracleTimeSpan structure with the specified TimeSpan.

欄位

MaxValue

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

MinValue

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

Null

代表 null 値,可將該値指派給 Value 結構之執行個體的 OracleTimeSpan 屬性。Represents a null value that can be assigned to the Value property of an instance of the OracleTimeSpan structure.

屬性

Days

取得這個執行個體表示的整數天數。Gets the number of whole days represented by this instance.

Hours

取得這個執行個體表示的整數時數。Gets the number of whole hours represented by this instance.

IsNull

取得值,指出 Value 結構的 OracleTimeSpan 屬性是否為 Null。Gets a value indicating whether the Value property of the OracleTimeSpan structure is null.

Milliseconds

取得這個執行個體表示的整數毫秒數。Gets the number of whole milliseconds represented by this instance.

Minutes

取得這個執行個體表示的整數分鐘數。Gets the number of whole minutes represented by this instance.

Seconds

取得這個執行個體表示的整數秒數。Gets the number of whole seconds represented by this instance.

Value

取得 OracleTimeSpan 結構的值。Gets the value of the OracleTimeSpan structure.

方法

CompareTo(Object)

將這個 OracleTimeSpan 結構與提供的物件相比較,並傳回它們相對值的指示。Compares this OracleTimeSpan structure to the supplied object and returns an indication of their relative values.

Equals(Object)

將提供的物件參數與 Value 物件的 OracleTimeSpan 屬性相比較。Compares the supplied object parameter to the Value property of the OracleTimeSpan object.

Equals(OracleTimeSpan, OracleTimeSpan)

執行兩個 OracleTimeSpan 結構的邏輯比對,以判斷它們是否相等。Performs a logical comparison of two OracleTimeSpan structures to determine whether they are equal.

GetHashCode()

取得這個執行個體的雜湊程式碼。Gets the hash code for this instance.

GreaterThan(OracleTimeSpan, OracleTimeSpan)

比較 OracleTimeSpan 的兩個執行個體,判斷第一個執行個體是否大於第二個。Compares two instances of OracleTimeSpan to determine whether the first is greater than the second.

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)

比較 OracleTimeSpan 的兩個執行個體,判斷第一個執行個體是否小於第二個。Compares two instances of OracleTimeSpan to determine whether the first is less than the second.

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)

執行兩個 OracleTimeSpan 執行個體的邏輯比對,以判斷它們是否相等。Performs a logical comparison of two instances of OracleTimeSpan to determine whether they are not equal.

Parse(String)

將日期與時間之指定的 String 表示轉換成它的 OracleTimeSpan 對等用法。Converts the specified String representation of a date and time to its OracleTimeSpan equivalent.

ToString()

將這個 OracleTimeSpan 結構轉換成 StringConverts this OracleTimeSpan structure to a String.

運算子

Equality(OracleTimeSpan, OracleTimeSpan)

執行兩個 OracleTimeSpan 結構的邏輯比對,以判斷它們是否相等。Performs a logical comparison of two OracleTimeSpan structures to determine whether they are equal.

Explicit(OracleTimeSpan to TimeSpan)

OracleTimeSpan 結構轉換成 TimeSpan 結構。Converts an OracleTimeSpan structure to a TimeSpan structure.

Explicit(String to OracleTimeSpan)

將字串轉換成 OracleTimeSpan 結構。Converts a string to an OracleTimeSpan structure.

GreaterThan(OracleTimeSpan, OracleTimeSpan)

比較 OracleTimeSpan 的兩個執行個體,判斷第一個執行個體是否大於第二個。Compares two instances of OracleTimeSpan to determine whether the first is greater than the second.

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)

執行 OracleTimeSpan 的兩個執行個體之邏輯比對,判斷它們是否相等。Performs a logical comparison of two instances of OracleTimeSpan to determine whether they are equal.

LessThan(OracleTimeSpan, OracleTimeSpan)

比較 OracleTimeSpan 的兩個執行個體,判斷第一個執行個體是否小於第二個。Compares two instances of OracleTimeSpan to determine whether the first is less than the second.

LessThanOrEqual(OracleTimeSpan, OracleTimeSpan)

比較 OracleTimeSpan 的兩個執行個體,判斷第一個執行個體是否小於或等於第二個。Compares two instances of OracleTimeSpan to determine whether the first is less than or equal to the second.

適用於