天软金融分析.NET函数大全 > TSL函数 > 基础函数 > 日期时间 > 日期重组函数

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 
相关