RecodeMilliSecond
简述
将参数ASecond指定的毫秒数(0至999)替换掉参数AValue中的相应的毫秒数信息,得到的日期时间类型返回
RecodeMilliSecond(AValue: TDateTime; AMilliSecond: Integer): TDateTime;
名称 | 类型 | 说明 |
---|
AValue | TDateTime | :日期时间类型 |
AMilliSecond | Integer | 整数,毫秒数,定义域[0,999] |
返回 | TDateTime |
日期时间 |
newTime:=RecodeMilliSecond(strtodatetime("2011-08-10 12:12:12.999"),100);
return MilliSecondOf (newTime);//输出: 100
TDateTime