随笔分类 -  Delphi C函数/过程

Delphi 日期函数列表
摘要:Delphi 日期函数列表 引用单元 :DateUtils CompareDate 比较两个日期时间值日期部分的大小 CompareDateTime 比较两个日期时间值的大小 CompareTime 比较两个日期时间值时间部分的大小 DateOf 去除日期时间值的时间部分 DateTimeToJul 阅读全文

posted @ 2019-07-05 15:35 滔Roy 阅读(870) 评论(0) 推荐(0) 编辑

Delphi Copy 函数 和 Pos函数
摘要:1、copy(a,b,c); -- 复制指定的字符串 a:就是copy源,就是一个字符串,表示你将要从a里copy一些东西, b:从a中的第b位开始copy(包含第1位), c:copy从第b位开始后的c个字符, 示例: m:='the fellowship of the ring' s:=copy 阅读全文

posted @ 2019-07-05 15:22 滔Roy 阅读(1731) 评论(0) 推荐(0) 编辑

Delphi 数学函数:常用的几个数学函数(Power、Abs、Int、Trunc、Round、Frac、sqr、sqrt)
摘要:Delphi 常用的几个数学函数 1 Power函数,求次方 定义:function Power(X,Y): (Same type as parameter); 说明:X可以是整型,也可以是实型;返回值实型例子: var i:integer; begin i := Power(2,3); { 8 } 阅读全文

posted @ 2015-10-03 12:37 滔Roy 阅读(5871) 评论(0) 推荐(0) 编辑

Delphi 格式化日期/浮动值 FormatDateTime 和 FormatFloat 用法
摘要:Delphi 格式化日期/浮动值 FormatDateTime 和 FormatFloat 用法 1、FormatDateTime 格式化日期1.1 原型: function FormatDateTime(const Format: string; DateTime: TDateTime): str 阅读全文

posted @ 2015-09-12 17:55 滔Roy 阅读(2806) 评论(0) 推荐(0) 编辑

Delphi Inc函数和Dec函数的用法
摘要:Inc 递增函数 ( increase ) Dec递减函数 (decrease) 创建时间:2015.06.07 更新日期:2019.12.24 来源:https://www.cnblogs.com/guorongtao/p/4557732.html 阅读全文

posted @ 2015-06-07 09:47 滔Roy 阅读(805) 评论(0) 推荐(0) 编辑

Delphi 取整函数round、trunc、ceil和floor
摘要:Delphi 取整函数round、trunc、ceil和floor 1.Round(四舍六入五留双)功能说明:对一个实数进行四舍五入。(按照银行家算法)例:var i, j: Integer;begin i := Round(1.5); // i等于2 j := Round(2.5); // j等于 阅读全文

posted @ 2015-04-26 19:00 滔Roy 阅读(1198) 评论(0) 推荐(0) 编辑

delphi 判断两个时间差是否在一个指定范围内
摘要:WithinPastYears、WithinPastMonths、WithinPastWeeks、WithinPastDays ... 判断两个时间差是否在一个指定范围内DateUtils.WithinPastYears();DateUtils.WithinPastMonths();DateUtil 阅读全文

posted @ 2015-04-26 13:19 滔Roy 阅读(659) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示