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

IncSecond    

简述

得到自参数AValue指定的时间向后推移AnumberOfSeconds秒的时间,参数AnumberOfSecond也可以为负值,表示向前推移。
定义
IncSecond(AValue: TDateTime; ANumberOfSeconds: Integer): TDateTime;
参数
名称类型说明
AValue TDateTime日期时间类型,日期时间
ANumberOfSeconds Integer整数,表示秒数
返回 TDateTime
日期时间
  • 范例


    incseconds:=IncSecond(strtodatetime('2010-08-01 00:01:01'),50);
    return datetimetostr(incseconds); //输出: 2010-08-01 00:01:51
    参考
    TDateTime 
相关