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; }
public void MatchInto(Match match, ref TmpDateTime dateTime, int groupIndex) { var value = match.Groups[groupIndex].Value; dateTime.Year = int.Parse(value); }
public void MatchInto(Match match, ref TmpDateTime dateTime, int groupIndex) { // For now we'll ignore this value }
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); }