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

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

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

Same methods

StringUtils::GetFormattedTime ( int totalSeconds, bool withLetters = true ) : string