TimeToString(TimeUnit, Decimal, Boolean) 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 string ToString(
	TimeUnit unit,
	decimal value,
	bool useAbbreviations = false
)

Parameters

unit  TimeUnit
Time unit.
value  Decimal
The value of the time unit.
useAbbreviations  Boolean  (Optional)
Indicates whether abbreviations will be used for hours, minutes and seconds texts.

Return Value

String
String with the time unit value.

See Also