Click or drag to resize

Ticks Methods

The Ticks type exposes the following members.

Methods
  Name Description
Public method Static member AlignToMicrosecondDistribution Returns a floor-aligned microsecond distribution timestamp for given timestamp.
Public method Static member AlignToMillisecondDistribution Returns a floor-aligned millisecond distribution timestamp for given timestamp.
Public method Static member AlignToSubsecondDistribution Returns a floor-aligned sub-second distribution timestamp for given timestamp.
Public method BaselinedTimestamp Creates a new Ticks value that represents a base-lined timestamp, in 100-nanoseconds intervals, that begins at the beginning of the specified time interval.
Public method CompareTo(DateTime) Compares this instance to a specified DateTime and returns an indication of their relative values.
Public method CompareTo(Int64) Compares this instance to a specified Int64 and returns an indication of their relative values.
Public method CompareTo(Object) Compares this instance to a specified object and returns an indication of their relative values.
Public method CompareTo(Ticks) Compares this instance to a specified Ticks and returns an indication of their relative values.
Public method CompareTo(TimeSpan) Compares this instance to a specified TimeSpan and returns an indication of their relative values.
Public method DistanceBeyondSecond Gets the distance, in 100-nanoseconds intervals, beyond the top of the second in the timestamp represented by the Ticks.
Public method Equals(DateTime) Returns a value indicating whether this instance is equal to a specified DateTime value.
Public method Equals(Int64) Returns a value indicating whether this instance is equal to a specified Int64 value.
Public method Equals(Object) Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object))
Public method Equals(Ticks) Returns a value indicating whether this instance is equal to a specified Ticks value.
Public method Equals(TimeSpan) Returns a value indicating whether this instance is equal to a specified TimeSpan value.
Public method Static member FromMicroseconds Creates a new Ticks from the specified value in microseconds.
Public method Static member FromMilliseconds Creates a new Ticks from the specified value in milliseconds.
Public method Static member FromSeconds Creates a new Ticks from the specified value in seconds.
Public method GetHashCode Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public method GetType Gets the Type of the current instance.
(Inherited from Object)
Public method GetTypeCode Returns the TypeCode for value type Int64.
Public method LocalTimeIsValid(Double, Double) Determines if time, represented by Ticks value in local time, is valid by comparing it to the system clock.
Public method LocalTimeIsValid(Ticks, Ticks) Determines if time, represented by Ticks value in local time, is valid by comparing it to the system clock.
Public method Static member MicrosecondDistribution Gets a sub-second time distribution in microseconds for the specified samplesPerSecond.
Public method Static member MillisecondDistribution Gets a sub-second time distribution in milliseconds for the specified samplesPerSecond.
Public method Static member Parse(String) Converts the string representation of a number to its Ticks equivalent.
Public method Static member Parse(String, NumberStyles) Converts the string representation of a number in a specified style to its Ticks equivalent.
Public method Static member Parse(String, IFormatProvider) Converts the string representation of a number in a specified culture-specific format to its Ticks equivalent.
Public method Static member Parse(String, NumberStyles, IFormatProvider) Converts the string representation of a number in a specified style and culture-specific format to its Ticks equivalent.
Public method Static member RoundToSecondDistribution Returns the nearest distribution timestamp for given timestamp.
Public method Static member RoundToSubsecondDistribution Returns the nearest sub-second distribution timestamp for given timestamp.
Public method Static member SubsecondDistribution Gets a sub-second time distribution in Ticks for the specified samplesPerSecond.
Public method TimeIsValid(Ticks, Ticks, Ticks) Determines if time, represented by Ticks value, is valid by comparing it to the specified current time.
Public method TimeIsValid(Ticks, Double, Double) Determines if time, represented by Ticks value, is valid by comparing it to the specified current time.
Public method ToDays Gets the Ticks value in equivalent number of days.
Public method ToElapsedTimeString Converts the Ticks value into a textual representation of years, days, hours, minutes and seconds.
Public method ToElapsedTimeString(Int32, Double) Converts the Ticks value into a textual representation of years, days, hours, minutes and seconds with the specified number of fractional digits.
Public method ToElapsedTimeString(Int32, String, Double) Converts the Ticks value into a textual representation of years, days, hours, minutes and seconds with the specified number of fractional digits given string array of time names.
Public method ToHours Gets the Ticks value in equivalent number of hours.
Public method ToMicroseconds Gets the Ticks value in equivalent number of microseconds.
Public method Static member ToMicroseconds(Ticks) Converts value, in 100-nanosecond tick intervals, to microseconds.
Public method ToMilliseconds Gets the Ticks value in equivalent number of milliseconds.
Public method Static member ToMilliseconds(Ticks) Converts value, in 100-nanosecond tick intervals, to milliseconds.
Public method ToMinutes Gets the Ticks value in equivalent number of minutes.
Public method Static member ToSecondDistribution Returns the distribution timestamp for given timestamp or MinValue if there is no TS within the specified Tolerance.
Public method ToSeconds Gets the Ticks value in equivalent number of seconds.
Public method Static member ToSeconds(Ticks) Converts value, in 100-nanosecond tick intervals, to seconds.
Public method ToString Converts the value of the Ticks value to its equivalent DateTime string representation.
(Overrides ValueTypeToString)
Public method ToString(IFormatProvider) Converts the Ticks value to its equivalent string representation, using the specified culture-specific DateTime format information.
Public method ToString(String) Converts the Ticks value to its equivalent string representation, using the specified DateTime format.
Public method ToString(String, IFormatProvider) Converts the Ticks value to its equivalent string representation, using specified format and culture-specific DateTime format information.
Public method Static member TryParse(String, Ticks) Converts the string representation of a number to its Ticks equivalent. A return value indicates whether the conversion succeeded or failed.
Public method Static member TryParse(String, NumberStyles, IFormatProvider, Ticks) Converts the string representation of a number in a specified style and culture-specific format to its Ticks equivalent. A return value indicates whether the conversion succeeded or failed.
Public method UtcTimeIsValid(Double, Double) Determines if time, represented by Ticks value in UTC time, is valid by comparing it to the system clock.
Public method UtcTimeIsValid(Ticks, Ticks) Determines if time, represented by Ticks value in UTC time, is valid by comparing it to the system clock.
Top
Extension Methods
  Name Description
Public Extension Method GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension Method GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also