GetLocalTime(&time SYSTEMTIME)(获取当地时间包括年月日星期时分秒ms)<br>GetSystemTime(&time SYSTEMTIME)(用法相似)<br>SYSTEMTIME is a lpoointer of time <br>you can use is as <br>SYSTEMTIME time;<br>getlocaltime(&time);<br>year:=wyear;<br>month :=wmonth;<br>...<br>SetLocalTime( &time SYSTEMTIME)<br>用法相似,先给Time 赋值,然后SET