FormatTimeSpan TimeSpan(?)

.FormatTimeSpan()

Formats a time as a string in the form "H:mm" ie: 9:45.

Method

public static string FormatTimeSpan(this TimeSpan ts)
public static string FormatTimeSpan(this TimeSpan? ts)
TimeSpan(?) ts

TimeSpan or TimeSpan? value to convert into the string format "H:mm".

Example

C#
string time = TimeSpan.Zero.FormatTimeSpan();