AngleSharp by AngleSharp

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

 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 float op_Explicit(Time time)

Converts the time to the number of milliseconds.

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.