如下面的程序,为什么出现设置的时间与输入时间不一致!急!<br>getsystemtime(st);<br> time1:=edit1.text;//(输入时间如:8:10:20);<br> date1:=edit2.text;//(输入日期:00-5-7)<br> datetime:=strtodatetime(date1+' '+time1);<br> // datetime:=strtodatetime(edit12.text);<br> DecodeDate(datetime, Year, Month, Day);<br> DecodeTime(datetime, Hour, Min, Sec, MSec);<br> with st do<br> begin<br> wyear:=year;<br> wmonth:=month;<br> wday:=day;<br> whour:=hour;<br> wminute:=min;<br> wsecond:=sec;<br> wmilliseconds:=msec;<br> end;<br> // DateTimeToSystemTime(DateTime,st);<br> setsystemtime(st);