예제 #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 StartTimeOfDay GetTimeOfDay(int militaryTime)
 {
     return(TimeHelper.GetTimeOfDay(TimeHelper.ConvertFromMilitaryTime(militaryTime)));
 }