TimeToString(TimeUnit, Int32, Boolean) Method
Converts a time unit value to text (example in hours: 15 hours, 1 hour, 0.5 hours, ...).
Namespace: Aliquo.CoreAssembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
public static string ToString(
TimeUnit unit,
int value,
bool useAbbreviations = false
)
Public Shared Function ToString (
unit As TimeUnit,
value As Integer,
Optional useAbbreviations As Boolean = false
) As String
- unit TimeUnit
- Time unit.
- value Int32
- The value of the time unit.
- useAbbreviations Boolean (Optional)
- Indicates whether abbreviations will be used for hours, minutes and seconds texts.
StringString with the time unit value.