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

RecodeSecond    

简述

将参数ASecond指定的秒数(0至59)替换掉参数AValue中的相应的秒数信息,得到的日期时间类型返回
定义
RecodeSecond(AValue: TDateTime; ASecond: Integer): TDateTime;
参数
名称类型说明
AValue TDateTime日期时间类型
AMinute:整数,秒数,定义域[0,59]
返回 TDateTime
日期时间
  • 范例


    newTime:=RecodeSecond(strtodatetime("2011-08-10 12:12:12"),9);
    return datetimetostr(newTime);//输出:  2011-08-10 12:12:09
    参考
    TDateTime 
相关