TimeToTimeSpan(TimeUnit, Double) Method

Converts a time unit value to text (example in hours: 15 hours, 1 hour, 0.5 hours, ...).

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static TimeSpan ToTimeSpan(
	TimeUnit unit,
	double value
)

Parameters

unit  TimeUnit
Time unit.
value  Double
The value of the time unit.

Return Value

TimeSpan
TimeSpan with the time unit value.

Exceptions

See Also