public string convertTime(string aTime)
        {
            if (!Utilities.IsValidTime(aTime))
            {
                throw new Exception(incorectMessage);
            }
            solution = new BerlinClockConverter(aTime);
            string result = solution.GetBerlinTimeFormat();

            return(result);
        }
示例#2
0
        public string ConvertTime(string aTime)
        {
            IBerlinClockConverter berlinClockConverter = new BerlinClockConverter(aTime);

            return(berlinClockConverter.ConvertTime());
        }