IncMinute
Increase a TDateTime value with a number of minutes.
Declaration
Source position: dateutil.inc line 293
function IncMinute(const AValue: TDateTime;
const ANumberOfMinutes: Int64) : TDateTime;
function IncMinute(const AValue: TDateTime) : TDateTime;
Description
IncMinute adds ANumberOfMinutes minutes to AValue and returns the resulting date/time.ANumberOfMinutes can be positive or negative.
See also
Name | Description |
---|---|
IncDay | Increase a TDateTime value with a number of days. |
IncHour | Increase a TDateTime value with a number of hours. |
IncMilliSecond | Increase a TDateTime value with a number of milliseconds. |
IncSecond | Increase a TDateTime value with a number of seconds. |
IncWeek | Increase a TDateTime value with a number of weeks. |
IncYear | Increase a TDateTime value with a number of years. |
#rtl.sysutils.IncMonth | Increases the month in a TDateTime value with a given amount. |
Example
Program Example76;
{ This program demonstrates the IncMinute function }
Uses SysUtils,DateUtils;
Begin
Writeln('One Minute from now is ',TimeToStr(IncMinute(Time,1)));
Writeln('One Minute ago from now is ',TimeToStr(IncMinute(Time,-1)));
End.