365文库
登录
注册
搜索
下载二维码
App功能展示
海量免费资源 海量免费资源
文档在线修改 文档在线修改
图片转文字 图片转文字
限时免广告 限时免广告
多端同步存储 多端同步存储
格式轻松转换 格式轻松转换
用户头像
失心病 上传于:2024-07-16
delphi日期函数、日期加减 2008-02-29 09:12 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;c
tj