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

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