Time span with micro second granularity.
Namespace: Stemmer.Cvb.Utilities
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax
public struct UsTimeSpan : IComparable, IComparable<UsTimeSpan>, IEquatable<UsTimeSpan>
The UsTimeSpan type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UsTimeSpan(Int64) |
Initializes this timespan from the given ticks.
| |
UsTimeSpan(TimeSpan) |
Creates a UsTimeSpan from the given timeSpan.
| |
UsTimeSpan(Int32, Int32, Int32) |
Initializes this timespan from the given times.
| |
UsTimeSpan(Int32, Int32, Int32, Int32) |
Initializes this timespan from the given times.
| |
UsTimeSpan(Int32, Int32, Int32, Int32, Int32) |
Initializes this timespan from the given times.
| |
UsTimeSpan(Int32, Int32, Int32, Int32, Int32, Int32) |
Initializes this timespan from the given times.
|
Properties
Name | Description | |
---|---|---|
Days |
Gets the days component of the time interval represented by this
object.
| |
Hours |
Gets the hours component of the time interval represented by this
object.
| |
Microseconds |
Gets the microsecond component of the time interval represented by
this object.
| |
Milliseconds |
Gets the millisecond component of the time interval represented by
this object.
| |
Minutes |
Gets the minutes component of the time interval represented by this
object.
| |
Seconds |
Gets the second component of the time interval represented by this
object.
| |
TotalDays |
Gets the whole value of this object expressed in whole and fractional
days.
| |
TotalHours |
Gets the whole value of this object expressed in whole and fractional
hours.
| |
TotalMicroseconds |
Gets the whole value of this object expressed in whole and fractional
microseconds.
| |
TotalMilliseconds |
Gets the whole value of this object expressed in whole and fractional
milliseconds.
| |
TotalMinutes |
Gets the whole value of this object expressed in whole and fractional
minutes.
| |
TotalSeconds |
Gets the whole value of this object expressed in whole and fractional
seconds.
| |
TotalTicks |
Gets the whole value of this object expressed in ticks.
|
Methods
Name | Description | |
---|---|---|
Add |
Gets the sum of this and the given timeSpan.
| |
CompareTo(Object) |
Compares this instance to a specified object and returns an integer
that indicates whether this instance is shorter than, equal to, or
longer than the specified object.
| |
CompareTo(UsTimeSpan) |
Compares this instance to a specified object and returns an integer
that indicates whether this instance is shorter than, equal to, or
longer than the specified object.
| |
Duration |
Gets new UsTimeSpan whose value is the absolute value of this
object.
| |
Equals(Object) |
Returns a value indicating whether this instance is equal to the given
obj.
(Overrides ValueTypeEquals(Object).) | |
Equals(UsTimeSpan) |
Returns a value indicating whether this instance is equal to given
other object.
| |
FromDays |
Returns UsTimeSpan that represents a specified number of
days.
| |
FromHours |
Returns UsTimeSpan that represents a specified number of
hours.
| |
FromMicroseconds |
Returns UsTimeSpan that represents a specified number of
microseconds.
| |
FromMilliseconds |
Returns UsTimeSpan that represents a specified number of
milliseconds.
| |
FromMinutes |
Returns UsTimeSpan that represents a specified number of
minutes.
| |
FromSeconds |
Returns UsTimeSpan that represents a specified number of
seconds.
| |
FromTicks |
Returns UsTimeSpan that represents a specified number of
ticks.
| |
GetHashCode |
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Negate |
Gets the same value of this object with a changed sign.
| |
Subtract |
Gets the difference of this and the given timeSpan.
| |
ToString |
Returns the string representation of the value of this instance.
(Overrides ValueTypeToString.) |
Operators
Name | Description | |
---|---|---|
Addition |
Adds lhs to rhs.
| |
Equality |
Equality operator.
| |
(UsTimeSpan to TimeSpan) |
Explicitly converts the timeSpan into a
TimeSpan object.
| |
GreaterThan |
Greater operator.
| |
GreaterThanOrEqual |
Greater or equal operator.
| |
(TimeSpan to UsTimeSpan) |
Implicitly converts the given timeSpan into a
UsTimeSpan object.
| |
Inequality |
Inequality operator.
| |
LessThan |
Less operator.
| |
LessThanOrEqual |
Less or equal to operator.
| |
Subtraction |
Subtracts rhs from lhs.
| |
UnaryNegation |
Gets the same value of other object with a changed
sign.
| |
UnaryPlus |
Gets the same value of other object.
|
Fields
Name | Description | |
---|---|---|
MaxValue |
Represents the maximum UsTimeSpan value. This field is read-only.
| |
MinValue |
Represents the minimum UsTimeSpan value. This field is read-only.
| |
TicksPerDay |
Represents the number of ticks in 1 day.
| |
TicksPerHour |
Represents the number of ticks in 1 hour.
| |
TicksPerMicrosecond |
Represents the number of ticks in 1 microsecond.
| |
TicksPerMillisecond |
Represents the number of ticks in 1 millisecond.
| |
TicksPerMinute |
Represents the number of ticks in 1 minute.
| |
TicksPerSecond |
Represents the number of ticks in 1 second.
| |
Zero |
Represents the zero UsTimeSpan value. This field is read-only.
|
See Also