System.DateUtils.IncHour

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function IncHour(const AValue: TDateTime; const ANumberOfHours: Int64 = 1): TDateTime;

C++

extern DELPHI_PACKAGE System::TDateTime __fastcall IncHour(const System::TDateTime AValue, const __int64 ANumberOfHours = 1LL);

Properties

Type Visibility Source Unit Parent
function public
System.DateUtils.pas
System.DateUtils.hpp
System.DateUtils System.DateUtils

Description

Returns a date/time value shifted by a specified number of hours.

IncHour returns the value of the AValue parameter, incremented by ANumberOfHours hours. ANumberOfHours can be negative, to return a date and time N hours prior to AValue.

See Also


Code Examples