Time Methods

Methods

CompareTo(Double) Compares this instance to a specified Double and returns an indication of their relative values.
CompareTo(Object) Compares this instance to a specified object and returns an indication of their relative values.
CompareTo(Time) Compares this instance to a specified Time and returns an indication of their relative values.
CompareTo(TimeSpan) Compares this instance to a specified TimeSpan and returns an indication of their relative values.
ConvertFrom Converts the value in the specified sourceUnit to a new Time in seconds.
ConvertTo Converts the Time to the specified targetUnit.
Equals(Double) Returns a value indicating whether this instance is equal to a specified Double value.
Equals(Object) Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object))
Equals(Time) Returns a value indicating whether this instance is equal to a specified Time value.
Equals(TimeSpan) Returns a value indicating whether this instance is equal to a specified TimeSpan value.
FromAtomicUnitsOfTime Creates a new Time value from the specified value in atomic units of time.
FromDays Creates a new Time value from the specified value in days.
FromHours Creates a new Time value from the specified value in hours.
FromKe Creates a new Time value from the specified value in ke, the traditional Chinese unit of decimal time.
FromMinutes Creates a new Time value from the specified value in minutes.
FromPlanckTime Creates a new Time value from the specified value in Planck time.
FromTicks Creates a new Time value from the specified value in Ticks.
FromWeeks Creates a new Time value from the specified value in weeks.
GetHashCode Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetTypeCode Returns the TypeCode for value type Double.
Parse(String) Converts the string representation of a number to its Time equivalent.
Parse(String, NumberStyles) Converts the string representation of a number in a specified style to its Time equivalent.
Parse(String, IFormatProvider) Converts the string representation of a number in a specified culture-specific format to its Time equivalent.
Parse(String, NumberStyles, IFormatProvider) Converts the string representation of a number in a specified style and culture-specific format to its Time equivalent.
SecondsPerMonth Returns the number of seconds in the specified month and year.
SecondsPerYear Returns the number of seconds in the specified year.
ToAtomicUnitsOfTime Gets the Time value in atomic units of time.
ToDays Gets the Time value in days.
ToElapsedTimeString Converts total seconds into a textual representation of years, days, hours, minutes and seconds with the specified number of fractional digits given string array of time names.
ToHours Gets the Time value in hours.
ToKe Gets the Time value in ke, the traditional Chinese unit of decimal time.
ToMinutes Gets the Time value in minutes.
ToPlanckTime Gets the Time value in Planck time.
ToString Converts the Time value into a textual representation of years, days, hours, minutes and seconds.
(Overrides ValueTypeToString)
ToString(IFormatProvider) Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
ToString(String) Converts the numeric value of this instance to its equivalent string representation, using the specified format.
ToString(Int32, Double) Converts the Time value into a textual representation of years, days, hours, minutes and seconds with the specified number of fractional digits.
ToString(String, IFormatProvider) Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
ToString(Int32, String, Double) Converts the Time 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.
ToTicks Converts the Time value, in seconds, to 100-nanosecond tick intervals.
ToWeeks Gets the Time value in weeks.
TryParse(String, Time) Converts the string representation of a number to its Time equivalent. A return value indicates whether the conversion succeeded or failed.
TryParse(String, NumberStyles, IFormatProvider, Time) Converts the string representation of a number in a specified style and culture-specific format to its Time equivalent. A return value indicates whether the conversion succeeded or failed.

Extension Methods

GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)

See Also