커뮤니티
부탁드립니다.
2019-09-15 22:24:21
183
글번호 131932
도움주심에 감사 드립니다.
다음 수식은 60분 단위로 계산하여 당일 해선 시작 시간에 0로 출발하고 있습니다.
1)이것을 주초(월요일) 해선 시작시간에 0로 출발하고 싶습니다.
2)이것을 월초 해선 시작시간에 0로 출발하고 싶습니다.
3)이것을 n봉전에서 0로 출발하고 싶습니다.
4)지정된 일자, 시간에 0로 출발하고 싶습니다.(참고수식 첨부)
(참고수식)
if Condition1 == false and sdate == 일자 and stime >= 시간 Then
Condition1 = true;
if Condition1 == true and Condition1[1] == false Then {
}
if Condition1 == true then
미리 감사 드립니다.
수식)
input : 단위(60);
var : S1(0),D1(0),TM(0),TF(0);
var : hh(0),ll(0),mm(0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%단위;
if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF < TF[1]) Then
{
hh = h;
ll = l;
}
if h > hh Then
hh = h;
if l < ll Then
ll = l;
mm = (hh+ll)/2;
var1=c-mm;
plot1(var1);
}
답변 1
예스스탁 예스스탁 답변
2019-09-16 13:23:59
안녕하세요
예스스탁입니다.
1
var : hh(0),ll(0),mm(0);
if DayOfWeek(Bdate) < DayOfWeek(Bdate[1]) Then
{
hh = h;
ll = l;
}
if hh > 0 and ll > 0 then
{
if h > hh Then
hh = h;
if l < ll Then
ll = l;
mm = (hh+ll)/2;
var1=c-mm;
plot1(var1);
}
2
var : hh(0),ll(0),mm(0);
if Bdate > Bdate[1]+30 Then
{
hh = h;
ll = l;
}
if hh > 0 and ll > 0 then
{
if h > hh Then
hh = h;
if l < ll Then
ll = l;
mm = (hh+ll)/2;
var1=c-mm;
plot1(var1);
}
3
가능하지 않습니다.
4
input : 일자(20190909),시간(90000);
var : hh(0),ll(0),mm(0);
if Condition1 == false and sdate == 일자 and stime >= 시간 Then
Condition1 = true;
if Condition1 == true and Condition1[1] == false Then
{
hh = h;
ll = l;
}
if Condition1 == true then
{
if h > hh Then
hh = h;
if l < ll Then
ll = l;
mm = (hh+ll)/2;
var1=c-mm;
plot1(var1);
}
즐거운 하루되세요
> 뮬리 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> 도움주심에 감사 드립니다.
다음 수식은 60분 단위로 계산하여 당일 해선 시작 시간에 0로 출발하고 있습니다.
1)이것을 주초(월요일) 해선 시작시간에 0로 출발하고 싶습니다.
2)이것을 월초 해선 시작시간에 0로 출발하고 싶습니다.
3)이것을 n봉전에서 0로 출발하고 싶습니다.
4)지정된 일자, 시간에 0로 출발하고 싶습니다.(참고수식 첨부)
(참고수식)
if Condition1 == false and sdate == 일자 and stime >= 시간 Then
Condition1 = true;
if Condition1 == true and Condition1[1] == false Then {
}
if Condition1 == true then
미리 감사 드립니다.
수식)
input : 단위(60);
var : S1(0),D1(0),TM(0),TF(0);
var : hh(0),ll(0),mm(0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%단위;
if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF < TF[1]) Then
{
hh = h;
ll = l;
}
if h > hh Then
hh = h;
if l < ll Then
ll = l;
mm = (hh+ll)/2;
var1=c-mm;
plot1(var1);
}
이전글