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

EncodeDateTime    

简述

根据给定的参数AYear, AMonth, ADay, AHour, AMinute, ASecond, AmilliSecond分别作为年、月、日、小时、分钟、秒、毫秒组成一个日期时间型数据返回
定义
EncodeDateTime(AYear; AMonth; ADay; AHour; AMinute; ASecond; AMilliSecond: Integer): TDateTime;
参数
名称类型说明
AYear Integer整数,年,年,定义域[1,9999]
AMonth Integer整数,月,月,定义域[1,12]
ADay Integer整数,日,日期,定义域[1,31]
AHour Integer整数,小时,小时,定义域[0,24],如果是24,则要求分钟、秒、毫秒全部为0
Aminute Integer整数,分钟,定义域[0,59]
Asecond Integer整数,秒,定义域[0,59]
AmilliSecond Integer整数,毫秒,定义域[0,999]
返回 TDateTime
日期时间
相关