示例#1
0
        public string ConvertTime(string aTime)
        {
            if (!IsValid(aTime))
            {
                throw new Exception("Time format is not valid");
            }

            var time = Parse(aTime);

            var clock = new BerlinClock(new LampRowBuilder(), time);

            return(clock.ToString());
        }
示例#2
0
        public string convertTime(string aTime)
        {
            var berlinClock = new Classes.BerlinClock(aTime);

            return(berlinClock.ToString());
        }