H hvlm2002 Unregistered / Unconfirmed GUEST, unregistred user! 2003-08-17 #1 time()函数取的时间是9:00:00,有什么函数可以取得09:00:00这样的格式吗?
W wfzha Unregistered / Unconfirmed GUEST, unregistred user! 2003-08-18 #3 time取回的是浮点数,9:00:00恐怕是用timetostr转的吧!<br>如果是这样,可以在控制面板的更改数字日期时间格式中将时间的格式改为HH:mm:ss就行了。
Z zjan521 Unregistered / Unconfirmed GUEST, unregistred user! 2003-08-18 #4 if HourOf(ATime)>9 then<br> TimeStr:= TimeToStr(ATime)<br>else<br> TimeStr:= '0'+TimeToStr(ATime);
if HourOf(ATime)>9 then<br> TimeStr:= TimeToStr(ATime)<br>else<br> TimeStr:= '0'+TimeToStr(ATime);