うまくコンパイル出来たソースをコピって、少し書き換えただけなのですが...
という3文なのですが...(マルコピで申し訳ないです。。。)
NotSecond=((LastHour*60*60+LastMinute*60+LastSecond)-(StartHour*60*60+StartMinute*60+StartSecond))\60 NotMinute=(((LastHour*60*60+LastMinute*60+LastSecond)-(StartHour*60*60+StartMinute*60+StartSecond))\(60*60)-NotSecond)/60 NotHour=(((LastHour*60*60+LastMinute*60+LastSecond)-(StartHour*60*60+StartMinute*60+StartSecond))-NotSecond-NotMinute)/(60*60)
一応、ソースを全文載せておきます(いつもながら汚いソースです。。。
暇がありましたら、ちょっと目を通して原因を探っていただけると助かります。
自分ではよぅ分からんので・・・
#include "hspdef.as" sx=300 sy=150 screen 0,sx,sy,0,ginfo_dispx-sx-6,0 buffer 1,10,10,0 gsel 0,0 title "Times" sdim SaveInfo sdim LoadInfo bload "D:\\Hot Soup Processor\\runtime\\Time\\Dates\\Date.txt",LoadInfo,, split LoadInfo,"!",LastYear,LastMonth,LastDay,LastHour,LastMinute,LastSecond //起動時刻の取得 StartYear=gettime(0);年 StartMonth=gettime(1);月 StartDay=gettime(3);日 StartHour=gettime(4);時 StartMinute=gettime(5);分 StartSecond=gettime(6);秒 dim UseHour : dim UseMinute : dim UseSecond dim NotHour : dim NotMinute : dim NotSecond gsel 0,2 *Main color 1,1,1 : boxf gosub *Get gosub *Draw gosub *Save wait 100 goto *main *Get //現在時刻の取得 NowYear=gettime(0);年 NowMonth=gettime(1);月 NowDay=gettime(3);日 NowHour=gettime(4);時 NowMinute=gettime(5);分 NowSecond=gettime(6);秒 UseSecond=((NowHour*60*60+NowMinute*60+NowSecond)-(StartHour*60*60+StartMinute*60+StartSecond))\60 UseMinute=(((NowHour*60*60+NowMinute*60+NowSecond)-(StartHour*60*60+StartMinute*60+StartSecond))\(60*60)-UseSecond)/60 UseHour=(((NowHour*60*60+NowMinute*60+NowSecond)-(StartHour*60*60+StartMinute*60+StartSecond))-UseSecond-UseMinute)/(60*60) //ここです NotSecond=((LastHour*60*60+LastMinute*60+LastSecond)-(StartHour*60*60+StartMinute*60+StartSecond))\60 NotMinute=(((LastHour*60*60+LastMinute*60+LastSecond)-(StartHour*60*60+StartMinute*60+StartSecond))\(60*60)-NotSecond)/60 NotHour=(((LastHour*60*60+LastMinute*60+LastSecond)-(StartHour*60*60+StartMinute*60+StartSecond))-NotSecond-NotMinute)/(60*60) return *Draw pos 2,2 : color 1,255,1 : font "msmincho",22 : print "現在時刻: "+NowYear+"/"+NowMonth+"/"+NowDay+" "+NowHour+":"+NowMinute+":"+NowSecond color 1,255,1 : line 0,28,sx,28 pos 2,35 : color 1,255,1 : font "msmincho",18 : print "今回起動: "+StartYear+"/"+StartMonth+"/"+StartDay+" "+StartHour+":"+StartMinute+":"+StartSecond pos 2,57 : color 1,255,1 : font "msmincho",18 : print "前回起動: "+LastYear+"/"+LastMonth+"/"+LastDay+" "+LastHour+":"+LastMinute+":"+LastSecond pos 2,79 : color 1,255,1 : font "msmincho",18 : print "経過時間: "+UseHour+":"+UseMinute+":"+UseSecond pos 2,101 : color 1,255,1 : font "msmincho",18 : print "未使用: "+NotHour+":"+NotMinute+":"+NotSecond return *Save SaveInfo=""+NowYear+"!"+NowMonth+"!"+NowDay+"!"+NowHour+"!"+NowMinute+"!"+NowSecond bSave "D:\\Hot Soup Processor\\runtime\\Time\\Dates\\Date.txt",SaveInfo, return *Finish end