Click or drag to resize

Time Methods

The Time type exposes the following members.

Methods
  Name Description
Public method CompareTo(Double) Compares this instance to a specified Double 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(Time) Compares this instance to a specified Time 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 Static member ConvertFrom Converts the value in the specified sourceUnit to a new Time in seconds.
Public method ConvertTo Converts the Time to the specified targetUnit.
Public method Equals(Double) Returns a value indicating whether this instance is equal to a specified Double value.
Public method Equals(Object) Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object))
Public method Equals(Time) Returns a value indicating whether this instance is equal to a specified Time value.
Public method Equals(TimeSpan) Returns a value indicating whether this instance is equal to a specified TimeSpan value.
Public method Static member FromAtomicUnitsOfTime Creates a new Time value from the specified value in atomic units of time.
Public method Static member FromDays Creates a new Time value from the specified value in days.
Public method Static member FromHours Creates a new Time value from the specified value in hours.
Public method Static member FromKe Creates a new Time value from the specified value in ke, the traditional Chinese unit of decimal time.
Public method Static member FromMinutes Creates a new Time value from the specified value in minutes.
Public method Static member FromPlanckTime Creates a new Time value from the specified value in Planck time.
Public method Static member FromTicks Creates a new Time value from the specified value in Ticks.
Public method Static member FromWeeks Creates a new Time value from the specified value in weeks.
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 Double.
Public method Static member Parse(String) Converts the string representation of a number to its Time equivalent.
Public method Static member Parse(String, NumberStyles) Converts the string representation of a number in a specified style to its Time equivalent.
Public method Static member Parse(String, IFormatProvider) Converts the string representation of a number in a specified culture-specific format to its Time 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 Time equivalent.
Public method Static member SecondsPerMonth Returns the number of seconds in the specified month and year.
Public method Static member SecondsPerYear Returns the number of seconds in the specified year.
Public method ToAtomicUnitsOfTime Gets the Time value in atomic units of time.
Public method ToDays Gets the Time value in days.
Public method Static member 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.
Public method ToHours Gets the Time value in hours.
Public method ToKe Gets the Time value in ke, the traditional Chinese unit of decimal time.
Public method ToMinutes Gets the Time value in minutes.
Public method ToPlanckTime Gets the Time value in Planck time.
Public method ToString Converts the Time value into a textual representation of years, days, hours, minutes and seconds.
(Overrides ValueTypeToString)
Public method ToString(IFormatProvider) Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
Public method ToString(String) Converts the numeric value of this instance to its equivalent string representation, using the specified format.
Public method 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.
Public method ToString(String, IFormatProvider) Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
Public method 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.
Public method ToTicks Converts the Time value, in seconds, to 100-nanosecond tick intervals.
Public method ToWeeks Gets the Time value in weeks.
Public method Static member TryParse(String, Time) Converts the string representation of a number to its Time equivalent. A return value indicates whether the conversion succeeded or failed.
Public method Static member 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.
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