커뮤니티

문의드립니다.

프로필 이미지
라떼처럼
2020-09-03 23:16:20
903
글번호 142056
답변완료
항상 감사드립니다. 아래식을 월~목요일은 StartTime(100000), Endtime(140000) 금요일은 StartTime(100000), Endtime(130000) 금요일 만 Endtime을 변경하고 싶습니다. 그럼 부탁드립니다. if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime)Then { Tcond = true; } if (sdate != sdate[1] and stime >= Endtime) or (sdate == sdate[1] and stime >= Endtime and stime[1] < Endtime)Then { Tcond = false; }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-09-04 15:12:13

안녕하세요 예스스탁입니다. input : StartTime(100000), Endtime1(140000),Endtime2(140000); var : ET(0),Tcond(False); if sDate != sDate[1] Then { if DayOfWeek(bDate) >= 1 and DayOfWeek(bDate) <=4 Then ET = Endtime1; Else ET = Endtime2; } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime)Then { Tcond = true; } if (sdate != sdate[1] and stime >= ET) or (sdate == sdate[1] and stime >= ET and stime[1] < ET)Then { Tcond = false; } 즐거운 하루되세요 > 라떼처럼 님이 쓴 글입니다. > 제목 : 문의드립니다. > 항상 감사드립니다. 아래식을 월~목요일은 StartTime(100000), Endtime(140000) 금요일은 StartTime(100000), Endtime(130000) 금요일 만 Endtime을 변경하고 싶습니다. 그럼 부탁드립니다. if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime)Then { Tcond = true; } if (sdate != sdate[1] and stime >= Endtime) or (sdate == sdate[1] and stime >= Endtime and stime[1] < Endtime)Then { Tcond = false; }