예제 #1
0
        public static string Format(int militaryTime, bool convertSingleDigit)
        {
            if (convertSingleDigit && militaryTime < 10)
            {
                militaryTime *= 100;
            }
            TimeSpan time = TimeHelper.ConvertFromMilitaryTime(militaryTime);

            return(TimeHelper.Format(time));
        }
예제 #2
0
        public static string TimeWithSuffix(this int num)
        {
            TimeSpan time = num.Time(true);

            return(TimeHelper.Format(time));
        }