天软金融分析.NET函数大全
>
TSL函数
>
基础函数
>
日期时间
>
常用日期时间函数
EncodeTime
复制链接
简述
将参数指定的Hour, Min, Sec, MSec: Integer作为小时、分钟、秒、毫秒组成一个TDateTime类型返回
定义
EncodeTime(Hour; Min; Sec; MSec: Integer): TDateTime;
参数
名称
类型
说明
Hour
Integer
整数,小时
Min
Integer
整数,分钟
Sec
Integer
整数,秒
MSec
Integer
整数,毫秒
返回
TDateTime
时间
范例
Time1:=EncodeTime(12,35,35,100);
return time1;//输出:0.52471(12:35:35.1)
参考
TDateTime
EncodeDate
TryEncodeDate
TryEncodeTime
DecodeTime
DecodeDate
DecodeDateFully
相关
EncodeDate
EncodeTime
TryEncodeDate
TryEncodeTime
DecodeDate
DecodeDateFully
DecodeTime
DayOfWeek
Date
Time
Now
CurrentYear
IncAMonth
IsLeapYear
DateToStr
TimeToStr
DateTimeToStr
StrToDate
StrToDateDef
TryStrToDate
StrToTime
Strtodatetime2
StrToTimeDef
TryStrToTime
StrToDateTime
StrToDateTimeDef
TryStrToDateTime
FormatDateTime
DateTimeToString
DateTimeToInternetStr
DateTimeGMTToCookieStr
DateTimeGMTToHttpStr
GMTToLocalDateTime