Esempio n. 1
0
        public IList <int> Retrieve(string s, string e, string gra)
        {
            IList <int>    _result     = new List <int>();
            DatetimeRegion _dateRegion = new DatetimeRegion(s, e, gra, m_pattern);

            _result = searchByDateTimeRange(_dateRegion);
            return(_result);
        }
Esempio n. 2
0
 private List <int> searchByDateTimeRange(DatetimeRegion dateTimeRegion)
 {
     return(m_datas.Where(n => n.TimeStamp >= dateTimeRegion.Start && n.TimeStamp <= dateTimeRegion.End).Select(n => n.Id).ToList());
 }