继续: 变形域代码为: {QUOTE
{SET Subtract 0}
{SET yy{DATE \@ yyyy}}
{SET mm{DATE \@ M}}
{SET dd{=MAX(1,IF((mm=2),28+(MOD(yy,4)=0)+(MOD(yy,400)=0)-(MOD(yy,100)=0),IF((mm=4)+(mm=6)+(mm=9)+(mm=11)+({DATE \@ d}>30)=1,30,31))-Subtract)}}
{=dd*10^6+mm*10^4+yy \# "00'-'00'-'0000"} \@ "dddd, d MMMM yyyy"}变形域代码为: {SET Subtract 0}
变形域代码为: {SET yy{DATE \@ yyyy}}
变形域代码为: {SET mm{DATE \@ M}}
变形域代码为: {SET dd{=MAX(1,IF((mm=2),28+(MOD(yy,4)=0)+(MOD(yy,400)=0)-(MOD(yy,100)=0),IF((mm=4)+(mm=6)+(mm=9)+(mm=11)+({DATE \@ d}>30)=1,30,31))-Subtract)}}
变形域代码为: {QUOTE
{SET Subtract 0}
{SET yy{DATE \@ yyyy}}
{SET mm{DATE \@ M}}
{SET dd{=MAX(1,IF((mm=2),28+(MOD(yy,4)=0)+(MOD(yy,400)=0)-(MOD(yy,100)=0),IF((mm=4)+(mm=6)+(mm=9)+(mm=11)+({DATE \@ d}>30)=1,30,31))-Subtract)}}
{=dd*10^6+mm*10^4+yy \# "00'-'00'-'0000"} \@ "dddd, d MMMM yyyy"}
变形域代码为: {QUOTE
{SET day 1}
{SET mm{=MOD({Date \@ MM},12)+1}}
{SET yy{={Date \@ yyyy}+INT(({Date \@ MM}+1)/12)}}
{SET dd{=MIN(day,IF((mm=2),28+({DATE \@ M}=2)*((MOD(yy,4)=0)+(MOD(yy,400)=0)-(MOD(yy,100)=0)),IF((mm=4)+(mm=6)+(mm=9)+(mm=11)+({DATE \@ d}>30)=1,30,31)))}}
{=dd*10^6+mm*10^4+yy \# "00'-'00'-'0000"} \@ "dddd, d MMMM yyyy"}变形域代码为: {SET day 1}
变形域代码为: {SET mm{=MOD({Date \@ MM},12)+1}}
变形域代码为: {SET yy{={Date \@ yyyy}+INT(({Date \@ MM}+1)/12)}}
变形域代码为: {SET dd{=MIN(day,IF((mm=2),28+({DATE \@ M}=2)*((MOD(yy,4)=0)+(MOD(yy,400)=0)-(MOD(yy,100)=0)),IF((mm=4)+(mm=6)+(mm=9)+(mm=11)+({DATE \@ d}>30)=1,30,31)))}}
变形域代码为: {QUOTE
{SET day 1}
{SET mm{=MOD({Date \@ MM},12)+1}}
{SET yy{={Date \@ yyyy}+INT(({Date \@ MM}+1)/12)}}
{SET dd{=MIN(day,IF((mm=2),28+({DATE \@ M}=2)*((MOD(yy,4)=0)+(MOD(yy,400)=0)-(MOD(yy,100)=0)),IF((mm=4)+(mm=6)+(mm=9)+(mm=11)+({DATE \@ d}>30)=1,30,31)))}}
{=dd*10^6+mm*10^4+yy \# "00'-'00'-'0000"} \@ "dddd, d MMMM yyyy"}
变形域代码为: {QUOTE
{SET a{=INT((14-MOD({DATE \@ M},12)+1)/12)}}
{SET b{={DATE \@ yyyy}+4800-a}}
{SET c{=(MOD({DATE \@ M},12)+1)+12*a-3}}
{SET jd{=1+INT((153*c+2)/5)+365*b+INT(b/4)-INT(b/100)+INT(b/400)-32045}}
{SET Weekday 3}
{SET Week 5}
{SET Limit{=IF(({DATE \@ M}=1)*((MOD(yy,4)=0)+(MOD(yy,400)=0)-(MOD(yy,100)=0))=1,29,IF(({DATE \@ M}=1,28,IF(({DATE \@ M}=3)+({DATE \@ M}=6)+({DATE \@ M}=8)+({DATE \@ M}=10)=1,30,31))}}
{SET jd{=INT(jd/7+MAX(Week-1,0))*7+Weekday+(INT(jd/7)*7+Weekday<jd)*7-((INT(jd/7+Week-1)*7+Weekday+(INT(jd/7)*7+Weekday<jd)*7>jd+Limit-1)*INT((INT(jd/7+Week-1)*7+Weekday+(INT(jd/7)*7+Weekday<jd)*7-(jd+Limit))/7+1)*7)}}
{SET e{=INT((4*(jd+32044)+3)/146097)}}
{SET f{=jd+32044-INT(146097*e/4)}}
{SET g{=INT((4*f+3)/1461)}}
{SET h{=f-INT(1461*g/4)}}
{SET i{=INT((5*h+2)/153)}}
{SET dd{=h-INT((153*i+2)/5)+1}}
{SET mm{=i+3-12*INT(i/10)}}
{SET yy{=100*e+g-4800+INT(i/10)}}
{=dd*10^6+mm*10^4+yy \# "00'-'00'-'0000"} \@ "dddd, d MMMM yyyy"}变形域代码为: {SET a{=INT((14-MOD({DATE \@ M},12)+1)/12)}}
变形域代码为: {SET b{={DATE \@ yyyy}+4800-a}}
变形域代码为: {SET c{=(MOD({DATE \@ M},12)+1)+12*a-3}}
变形域代码为: {SET jd{=1+INT((153*c+2)/5)+365*b+INT(b/4)-INT(b/100)+INT(b/400)-32045}}
变形域代码为: {SET Weekday 3}
变形域代码为: {SET Week 5}
变形域代码为: {SET Limit{=IF(({DATE \@ M}=1)*((MOD(yy,4)=0)+(MOD(yy,400)=0)-(MOD(yy,100)=0))=1,29,IF(({DATE \@ M}=1,28,IF(({DATE \@ M}=3)+({DATE \@ M}=6)+({DATE \@ M}=8)+({DATE \@ M}=10)=1,30,31))}}
变形域代码为: {SET jd{=INT(jd/7+MAX(Week-1,0))*7+Weekday+(INT(jd/7)*7+Weekday<jd)*7-((INT(jd/7+Week-1)*7+Weekday+(INT(jd/7)*7+Weekday<jd)*7>jd+Limit-1)*INT((INT(jd/7+Week-1)*7+Weekday+(INT(jd/7)*7+Weekday<jd)*7-(jd+Limit))/7+1)*7)}}
变形域代码为: {SET e{=INT((4*(jd+32044)+3)/146097)}}
变形域代码为: {SET f{=jd+32044-INT(146097*e/4)}}
变形域代码为: {SET g{=INT((4*f+3)/1461)}}
变形域代码为: {SET h{=f-INT(1461*g/4)}}
变形域代码为: {SET i{=INT((5*h+2)/153)}}
变形域代码为: {SET dd{=h-INT((153*i+2)/5)+1}}
变形域代码为: {SET mm{=i+3-12*INT(i/10)}}
变形域代码为: {SET yy{=100*e+g-4800+INT(i/10)}}
变形域代码为: {QUOTE
{SET a{=INT((14-MOD({DATE \@ M},12)+1)/12)}}
{SET b{={DATE \@ yyyy}+4800-a}}
{SET c{=(MOD({DATE \@ M},12)+1)+12*a-3}}
{SET jd{=1+INT((153*c+2)/5)+365*b+INT(b/4)-INT(b/100)+INT(b/400)-32045}}
{SET Weekday 3}
{SET Week 5}
{SET Limit{=IF(({DATE \@ M}=1)*((MOD(yy,4)=0)+(MOD(yy,400)=0)-(MOD(yy,100)=0))=1,29,IF(({DATE \@ M}=1,28,IF(({DATE \@ M}=3)+({DATE \@ M}=6)+({DATE \@ M}=8)+({DATE \@ M}=10)=1,30,31))}}
{SET jd{=INT(jd/7+MAX(Week-1,0))*7+Weekday+(INT(jd/7)*7+Weekday<jd)*7-((INT(jd/7+Week-1)*7+Weekday+(INT(jd/7)*7+Weekday<jd)*7>jd+Limit-1)*INT((INT(jd/7+Week-1)*7+Weekday+(INT(jd/7)*7+Weekday<jd)*7-(jd+Limit))/7+1)*7)}}
{SET e{=INT((4*(jd+32044)+3)/146097)}}
{SET f{=jd+32044-INT(146097*e/4)}}
{SET g{=INT((4*f+3)/1461)}}
{SET h{=f-INT(1461*g/4)}}
{SET i{=INT((5*h+2)/153)}}
{SET dd{=h-INT((153*i+2)/5)+1}}
{SET mm{=i+3-12*INT(i/10)}}
{SET yy{=100*e+g-4800+INT(i/10)}}
{=dd*10^6+mm*10^4+yy \# "00'-'00'-'0000"} \@ "dddd, d MMMM yyyy"}
变形域代码为: {QUOTE
{SET a{=INT((14-{DATE \@ M})/12)}}
{SET b{={DATE \@ yyyy}+4800-a}}
{SET c{={DATE \@ M}+12*a-3}}
{SET d{DATE \@ d}}
{SET jd{=d+INT((153*c+2)/5)+365*b+INT(b/4)-INT(b/100)+INT(b/400)-32045}}
{SET Delay{=IF({DATE \@ HH}>12,1+(MOD(jd,7)=4)*2,0)}}
{SET jd{=jd+Delay}}
{SET e{=INT((4*(jd+32044)+3)/146097)}}
{SET f{=jd+32044-INT(146097*e/4)}}
{SET g{=INT((4*f+3)/1461)}}
{SET h{=f-INT(1461*g/4)}}
{SET i{=INT((5*h+2)/153)}}
{SET dd{=h-INT((153*i+2)/5)+1}}
{SET mm{=i+3-12*INT(i/10)}}
{SET yy{=100*e+g-4800+INT(i/10)}}
{=dd*10^6+mm*10^4+yy \# "00'-'00'-'0000"} \@ "dddd, d MMMM yyyy"}变形域代码为: {SET a{=INT((14-{DATE \@ M})/12)}}
变形域代码为: {SET b{={DATE \@ yyyy}+4800-a}}
变形域代码为: {SET c{={DATE \@ M}+12*a-3}}
变形域代码为: {SET d{DATE \@ d}}
变形域代码为: {SET jd{=d+INT((153*c+2)/5)+365*b+INT(b/4)-INT(b/100)+INT(b/400)-32045}}
变形域代码为: {SET Delay{=IF({DATE \@ HH}>12,1+(MOD(jd,7)=4)*2,0)}}
变形域代码为: {SET jd{=jd+Delay}}
变形域代码为: {SET e{=INT((4*(jd+32044)+3)/146097)}}
变形域代码为: {SET f{=jd+32044-INT(146097*e/4)}}
变形域代码为: {SET g{=INT((4*f+3)/1461)}}
变形域代码为: {SET h{=f-INT(1461*g/4)}}
变形域代码为: {SET i{=INT((5*h+2)/153)}}
变形域代码为: {SET dd{=h-INT((153*i+2)/5)+1}}
变形域代码为: {SET mm{=i+3-12*INT(i/10)}}
变形域代码为: {SET yy{=100*e+g-4800+INT(i/10)}}
变形域代码为: {QUOTE
{SET a{=INT((14-{DATE \@ M})/12)}}
{SET b{={DATE \@ yyyy}+4800-a}}
{SET c{={DATE \@ M}+12*a-3}}
{SET d{DATE \@ d}}
{SET jd{=d+INT((153*c+2)/5)+365*b+INT(b/4)-INT(b/100)+INT(b/400)-32045}}
{SET Delay{=IF({DATE \@ HH}>12,1+(MOD(jd,7)=4)*2,0)}}
{SET jd{=jd+Delay}}
{SET e{=INT((4*(jd+32044)+3)/146097)}}
{SET f{=jd+32044-INT(146097*e/4)}}
{SET g{=INT((4*f+3)/1461)}}
{SET h{=f-INT(1461*g/4)}}
{SET i{=INT((5*h+2)/153)}}
{SET dd{=h-INT((153*i+2)/5)+1}}
{SET mm{=i+3-12*INT(i/10)}}
{SET yy{=100*e+g-4800+INT(i/10)}}
{=dd*10^6+mm*10^4+yy \# "00'-'00'-'0000"} \@ "dddd, d MMMM yyyy"}
变形域代码为: {QUOTE
{ASK StartDate "What is the starting date, in dd/mm/yyyy format, please?" \d {DATE \@ "d/MM/yyyy"}}{ASK Delay "What is the number of days +/- offset?"}
"If the starting date is "{StartDate \@ "dddd, d MMMM yyyy"}" and the offset is {Delay \# ,0} {IF{={Delay}^2}= 1 day days}, then the new date is "
{SET a{=INT((14-{StartDate \@ M})/12)}}
{SET b{={StartDate \@ yyyy}+4800-a}}
{SET c{={StartDate \@ M}+12*a-3}}
{SET d{StartDate \@ d}}
{SET jd{=d+INT((153*c+2)/5)+365*b+INT(b/4)-INT(b/100)+INT(b/400)-32045+Delay}}
{SET e{=INT((4*(jd+32044)+3)/146097)}}
{SET f{=jd+32044-INT(146097*e/4)}}
{SET g{=INT((4*f+3)/1461)}}
{SET h{=f-INT(1461*g/4)}}
{SET i{=INT((5*h+2)/153)}}
{SET dd{=h-INT((153*i+2)/5)+1}}
{SET mm{=i+3-12*INT(i/10)}}
{SET yy{=100*e+g-4800+INT(i/10)}}
{QUOTE{=dd*10^6+mm*10^4+yy \# "00'-'00'-'0000"} \@ "dddd, d MMMM yyyy"}."}变形域代码为: {ASK StartDate "What is the starting date, in dd/mm/yyyy format, please?" \d {DATE \@ "d/MM/yyyy"}}{ASK Delay "What is the number of days +/- offset?"}
变形域代码为: "If the starting date is "{StartDate \@ "dddd, d MMMM yyyy"}" and the offset is {Delay \# ,0} {IF{={Delay}^2}= 1 day days}, then the new date is "
变形域代码为: {SET a{=INT((14-{StartDate \@ M})/12)}}
变形域代码为: {SET b{={StartDate \@ yyyy}+4800-a}}
变形域代码为: {SET c{={StartDate \@ M}+12*a-3}}
变形域代码为: {SET d{StartDate \@ d}} |