public static string Format(int militaryTime, bool convertSingleDigit) { if (convertSingleDigit && militaryTime < 10) { militaryTime *= 100; } TimeSpan time = TimeHelper.ConvertFromMilitaryTime(militaryTime); return(TimeHelper.Format(time)); }
public static string TimeWithSuffix(this int num) { TimeSpan time = num.Time(true); return(TimeHelper.Format(time)); }