Method | Description | |
---|---|---|
ConvertTo ( TimeUnit newTmeUnit ) : Duration |
Gets a new instance for the same duration expressed in another TimeUnit
|
|
ConvertToMilliseconds ( double duration, TimeUnit durationTimeUnit ) : int |
Converts a given duration to a number of milliseconds.
|
|
Duration ( System.TimeSpan timeSpan, TimeUnit unit ) : System |
Initializes a new instance of the Duration struct.
|
|
Duration ( double rawDuration, TimeUnit timeUnit ) : System |
Initializes a new instance of the Duration struct.
|
|
Equals ( Duration other ) : bool |
Checks if the duration is equal to another one.
|
|
Equals ( object obj ) : bool |
Checks if the duration is equal to another object.
|
|
GetHashCode ( ) : int |
Gets the hash value of this instance.
|
|
ToString ( ) : string |
Returns a System.String that represents this instance.
|
|
operator ( ) : bool |
Checks if duration a is less than duration b.
|
public ConvertTo ( TimeUnit newTmeUnit ) : Duration | ||
newTmeUnit | TimeUnit | The target time unit. |
return | Duration |
public static ConvertToMilliseconds ( double duration, TimeUnit durationTimeUnit ) : int | ||
duration | double | The duration value. |
durationTimeUnit | TimeUnit | The time unit of the duration. |
return | int |
public Duration ( System.TimeSpan timeSpan, TimeUnit unit ) : System | ||
timeSpan | System.TimeSpan | The time span. |
unit | TimeUnit | The time unit. |
return | System |
public Duration ( double rawDuration, TimeUnit timeUnit ) : System | ||
rawDuration | double | /// Duration of the raw. /// |
timeUnit | TimeUnit | /// The time unit. /// |
return | System |
public Equals ( Duration other ) : bool | ||
other | Duration | The duration to compare to. |
return | bool |
public Equals ( object obj ) : bool | ||
obj | object | The duration to compare to. |
return | bool |