- 2
- 0
- 约1.05万字
- 约 19页
- 2021-03-20 发布于山东
- 举报
.word 可编辑 .
Delphi 日期函数 、日期加减
Delphi 里有现成的函数可以实现日期加减 ,是在 DateUtils 单元里的 。
function IncYear(const AValue: TDateTime;
const ANumberOfYears: Integer = 1): TDateTime;
// function IncMonth is in SysUtils
function IncWeek(const AValue: TDateTime;
const ANumberOfWeeks: Integer = 1): TDateTime;
function IncDay(const AValue: TDateTime;
const ANumberOfDays: Integer = 1): TDateTime;
function IncHour(const AValue: TDateTime;
const ANumberOfHours: Int64 = 1): TDateTime;
function IncMinute(const AValue: TDateTime;
const ANumberOfMinutes: Int64 = 1): TDateTime;
function IncSecond(const AValue: TDateTime;
con
原创力文档

文档评论(0)