Beispiel #1
0
        public static Date Parse(string s)
        {
            Date d = new Date();

            d.divider       = s[0];
            d.timeDirection = (TimeDirection)int.Parse(s[1].ToString());
            int splitPoint = System.Text.RegularExpressions.Regex.Split(s.Substring(2), "[0-9]")[0].Length;

            d.displayStyle = TimeFormats.MatchDirection(s.Substring(2, splitPoint));
            string timeString = s.Substring(d.displayStyle.Length + 2);

            d.SetTime(timeString);

            return(d);
        }
Beispiel #2
0
 public void UpdateDate(string s)
 {
     date.SetTime(s);
 }