求一简单的转换函数 如何把 3:20:8 转成为秒 Integer 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 3;20:8 是个什么呀?如果想获得秒不如用secondof函数Delphi syntax:function SecondOf(const AValue: TDateTime): Word; var AValue: TDateTime;beginAValue:=StrToTime('10:10:00');ShowMessage(IntToStr(SecondOf(AValue)));怎么结果是零?? secondofday返回这天经历了多少秒还有secondofminute,secondofweek,secondofyear具体看你需要那一个了 procedure TForm1.bsSkinButton2Click(Sender: TObject);var AValue: TDateTime;begin AValue:=StrToTime('10:10:01'); ShowMessage(floatToStr(AValue*86400));end; DecodeTime(Present, Hour, Min, Sec, MSec); Label2.Caption := IntToStr(Sec) + 60*(IntToStr(Min)) + 3600*(IntToStr(Hour)); 高手请进,关于数据集游标 2006年度天津IT人的“薪”情调查 delphi 2005调用vb编的程序怎么做呀,急急急!!!在线等!!! 程序员薪水 IT技术交流 QQ群10206167 欢迎加入 可以讨论各类的IT技术问题。 delphi 7 控件bug! ADOConnection连接sqlserver 问题! 简单问题:请问如何限制窗口的最小范围的大小? 如何给按钮加上提示? 虫灾反击战,我捉,捉,捉…… 不要笑我的提问 我是菜鸟,请各位帮帮我,怎么样能在显示窗口完毕后执行一段程序?
如果想获得秒
不如用secondof函数
Delphi syntax:function SecondOf(const AValue: TDateTime): Word;
AValue: TDateTime;
begin
AValue:=StrToTime('10:10:00');
ShowMessage(IntToStr(SecondOf(AValue)));怎么结果是零??
还有secondofminute,secondofweek,secondofyear具体看你需要那一个了
var
AValue: TDateTime;
begin
AValue:=StrToTime('10:10:01');
ShowMessage(floatToStr(AValue*86400));
end;
Label2.Caption := IntToStr(Sec) + 60*(IntToStr(Min)) + 3600*(IntToStr(Hour));