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);
        }