AssemblyCSharp.StringUtils.GetFormattedTimeWithoutLetters C# (CSharp) Метод

GetFormattedTimeWithoutLetters() публичный статический Метод

public static GetFormattedTimeWithoutLetters ( System.TimeSpan timeSpan ) : string
timeSpan System.TimeSpan
Результат string
        public static string GetFormattedTimeWithoutLetters(TimeSpan timeSpan)
        {
            return timeSpan.Hours > 0
            ? string.Format("{0:00}:{1:00}:{2:00}", timeSpan.Hours, timeSpan.Minutes, timeSpan.Seconds)
            : string.Format("{0:00}:{1:00}", timeSpan.Minutes, timeSpan.Seconds);
        }