Ejemplo n.º 1
0
 public DateTime ConvertScheduleItemToDateTime(DateTime yearMonthDay, ScheduleItem scheduleItem)
 {
     return(new DateTime(yearMonthDay.Year, yearMonthDay.Month, yearMonthDay.Day, scheduleItem.Hour,
                         scheduleItem.Minute, 0));
 }
Ejemplo n.º 2
0
        public bool IsTimeCorrectlyScheduled(int unixTime, ScheduleItem scheduleItem)
        {
            var dateTime = UnixTimeConverter.ToDateTime(unixTime);

            return(new ScheduleItem(dateTime).Equals(scheduleItem));
        }