public bool IsOnRec(int MarginMin = 0) { int StartMargin = RecSetting.GetTrueMargin(true) + 60 * MarginMin; int EndMargin = RecSetting.GetTrueMargin(false); DateTime startTime = StartTime.AddSeconds(StartMargin * -1); int duration = (int)DurationSecond + StartMargin + EndMargin; return(CtrlCmdDefEx.isOnTime(startTime, duration)); }
public DateTime EndTimeWithMargin() { int EndMargin = RecSetting.GetTrueMargin(false); return(StartTime.AddSeconds((int)DurationSecond + EndMargin)); }
public DateTime StartTimeWithMargin(int MarginMin = 0) { int StartMargin = RecSetting.GetTrueMargin(true) + 60 * MarginMin; return(StartTime.AddSeconds(StartMargin * -1)); }