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