UsTimeSpan Structure

CVB.Net Documentation
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

  NameDescription
Public methodUsTimeSpan(Int64)
Initializes this timespan from the given ticks.
Public methodUsTimeSpan(TimeSpan)
Creates a UsTimeSpan from the given timeSpan.
Public methodUsTimeSpan(Int32, Int32, Int32)
Initializes this timespan from the given times.
Public methodUsTimeSpan(Int32, Int32, Int32, Int32)
Initializes this timespan from the given times.
Public methodUsTimeSpan(Int32, Int32, Int32, Int32, Int32)
Initializes this timespan from the given times.
Public methodUsTimeSpan(Int32, Int32, Int32, Int32, Int32, Int32)
Initializes this timespan from the given times.
Top
Properties

  NameDescription
Public propertyDays
Gets the days component of the time interval represented by this object.
Public propertyHours
Gets the hours component of the time interval represented by this object.
Public propertyMicroseconds
Gets the microsecond component of the time interval represented by this object.
Public propertyMilliseconds
Gets the millisecond component of the time interval represented by this object.
Public propertyMinutes
Gets the minutes component of the time interval represented by this object.
Public propertySeconds
Gets the second component of the time interval represented by this object.
Public propertyTotalDays
Gets the whole value of this object expressed in whole and fractional days.
Public propertyTotalHours
Gets the whole value of this object expressed in whole and fractional hours.
Public propertyTotalMicroseconds
Gets the whole value of this object expressed in whole and fractional microseconds.
Public propertyTotalMilliseconds
Gets the whole value of this object expressed in whole and fractional milliseconds.
Public propertyTotalMinutes
Gets the whole value of this object expressed in whole and fractional minutes.
Public propertyTotalSeconds
Gets the whole value of this object expressed in whole and fractional seconds.
Public propertyTotalTicks
Gets the whole value of this object expressed in ticks.
Top
Methods

  NameDescription
Public methodAdd
Gets the sum of this and the given timeSpan.
Public methodCompareTo(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.
Public methodCompareTo(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.
Public methodDuration
Gets new UsTimeSpan whose value is the absolute value of this object.
Public methodEquals(Object)
Returns a value indicating whether this instance is equal to the given obj.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(UsTimeSpan)
Returns a value indicating whether this instance is equal to given other object.
Public methodStatic memberFromDays
Returns UsTimeSpan that represents a specified number of days.
Public methodStatic memberFromHours
Returns UsTimeSpan that represents a specified number of hours.
Public methodStatic memberFromMicroseconds
Returns UsTimeSpan that represents a specified number of microseconds.
Public methodStatic memberFromMilliseconds
Returns UsTimeSpan that represents a specified number of milliseconds.
Public methodStatic memberFromMinutes
Returns UsTimeSpan that represents a specified number of minutes.
Public methodStatic memberFromSeconds
Returns UsTimeSpan that represents a specified number of seconds.
Public methodStatic memberFromTicks
Returns UsTimeSpan that represents a specified number of ticks.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodNegate
Gets the same value of this object with a changed sign.
Public methodSubtract
Gets the difference of this and the given timeSpan.
Public methodToString
Returns the string representation of the value of this instance.
(Overrides ValueTypeToString.)
Top
Operators

  NameDescription
Public operatorStatic memberAddition
Adds lhs to rhs.
Public operatorStatic memberEquality
Equality operator.
Public operatorStatic member(UsTimeSpan to TimeSpan)
Explicitly converts the timeSpan into a TimeSpan object.
Public operatorStatic memberGreaterThan
Greater operator.
Public operatorStatic memberGreaterThanOrEqual
Greater or equal operator.
Public operatorStatic member(TimeSpan to UsTimeSpan)
Implicitly converts the given timeSpan into a UsTimeSpan object.
Public operatorStatic memberInequality
Inequality operator.
Public operatorStatic memberLessThan
Less operator.
Public operatorStatic memberLessThanOrEqual
Less or equal to operator.
Public operatorStatic memberSubtraction
Subtracts rhs from lhs.
Public operatorStatic memberUnaryNegation
Gets the same value of other object with a changed sign.
Public operatorStatic memberUnaryPlus
Gets the same value of other object.
Top
Fields

  NameDescription
Public fieldStatic memberMaxValue
Represents the maximum UsTimeSpan value. This field is read-only.
Public fieldStatic memberMinValue
Represents the minimum UsTimeSpan value. This field is read-only.
Public fieldStatic memberTicksPerDay
Represents the number of ticks in 1 day.
Public fieldStatic memberTicksPerHour
Represents the number of ticks in 1 hour.
Public fieldStatic memberTicksPerMicrosecond
Represents the number of ticks in 1 microsecond.
Public fieldStatic memberTicksPerMillisecond
Represents the number of ticks in 1 millisecond.
Public fieldStatic memberTicksPerMinute
Represents the number of ticks in 1 minute.
Public fieldStatic memberTicksPerSecond
Represents the number of ticks in 1 second.
Public fieldStatic memberZero
Represents the zero UsTimeSpan value. This field is read-only.
Top
See Also

Reference