AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.9" />

 Time

Represents a time value.
public enum Unit

An enumeration of time units.

public static readonly Time Zero

Gets the zero time.

public Unit Type { get; }

Gets the type of the length.

public string UnitString { get; }

Gets the representation of the unit as a string.

public float Value { get; }

Gets the value of time.

public Time(float value, Unit unit)

Creates a new time value.

public static Unit GetUnit(string s)

Gets the unit from the enumeration for the provided string.

public static bool op_Equality(Time a, Time b)

Checks for equality of two times.

public static bool op_GreaterThan(Time a, Time b)

Compares the magnitude of two times.

public static bool op_GreaterThanOrEqual(Time a, Time b)

Compares the magnitude of two times.

public static bool op_Inequality(Time a, Time b)

Checks for inequality of two times.

public static bool op_LessThan(Time a, Time b)

Compares the magnitude of two times.

public static bool op_LessThanOrEqual(Time a, Time b)

Compares the magnitude of two times.

public static bool TryParse(string s, out Time result)

Tries to convert the given string to a Time.

public int CompareTo(Time other)

Compares the current time against the given one.

public bool Equals(Time other)

Checks if the current time is equal to the other time.

public float ToMilliseconds()

Converts the value to milliseconds.

public string ToString(string format, IFormatProvider formatProvider)

Returns a formatted string representing the time.