Ejemplo n.º 1
0
        public void MatchInto(Match match, LogEntry logEntry)
        {
            var tmpValue   = new TmpDateTime();
            int groupIndex = _groupIndex;

            for (int i = 0; i < _matchers.Count; ++i)
            {
                _matchers[i].MatchInto(match, ref tmpValue, groupIndex);
                groupIndex += _matchers[i].NumGroups;
            }

            var dateTime = tmpValue.ToDateTime();

            logEntry.Timestamp = dateTime;
        }
Ejemplo n.º 2
0
            public void MatchInto(Match match, ref TmpDateTime dateTime, int groupIndex)
            {
                var value = match.Groups[groupIndex].Value;

                dateTime.Year = int.Parse(value);
            }
Ejemplo n.º 3
0
 public void MatchInto(Match match, ref TmpDateTime dateTime, int groupIndex)
 {
     // For now we'll ignore this value
 }
Ejemplo n.º 4
0
            public void MatchInto(Match match, ref TmpDateTime dateTime, int groupIndex)
            {
                var value = match.Groups[groupIndex].Value;

                dateTime.Day = int.Parse(value, NumberStyles.Integer, CultureInfo.CurrentUICulture);
            }