TimeToString(TimeSpan, Boolean, Boolean) Method

Convert time to text (5 hours and 10 minutes or 15 minutes and 58 seconds, ...).

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static string ToString(
	TimeSpan time,
	bool includeSeconds = true,
	bool useAbbreviations = false
)

Parameters

time  TimeSpan
Time to convert.
includeSeconds  Boolean  (Optional)
Indicates whether seconds are included.
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