TimeToString(TimeSpan, NullableInt32, NullableInt32, Boolean) Method
Convert time to text (5 hours and 10 minutes or 15 minutes and 58 seconds, ...).
Namespace: Aliquo.CoreAssembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
public static string ToString(
TimeSpan time,
int? minutesUntilHours,
int? secondsUntilMinutes,
bool useAbbreviations = false
)
Public Shared Function ToString (
time As TimeSpan,
minutesUntilHours As Integer?,
secondsUntilMinutes As Integer?,
Optional useAbbreviations As Boolean = false
) As String
- 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.
StringString with the time unit value.