TimeToString(TimeSpan, NullableInt32, NullableInt32, 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,
	int? minutesUntilHours,
	int? secondsUntilMinutes,
	bool useAbbreviations = false
)

Parameters

time  TimeSpan
Time to convert.
minutesUntilHours  NullableInt32
Indicates that minutes will only be represented up to the indicated hours.
secondsUntilMinutes  NullableInt32
Indicates that the seconds will only be represented up to the indicated minutes.
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