System.SysUtils.IncAMonth

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

procedure IncAMonth(var Year, Month, Day: Word; NumberOfMonths: Integer = 1);

C++

extern DELPHI_PACKAGE void __fastcall IncAMonth(System::Word &Year, System::Word &Month, System::Word &Day, int NumberOfMonths = 0x1);

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

説明

日付データを月単位でインクリメントします。

IncAMonth 手続きは,Year,Month,および Day パラメータを修正し,それらの示す日付を NumberOfMonths の月数でインクリメントします。NumberOfMonths に負の値を指定すると,N か月前の日付を返すことができます。

月の入力日が結果月の最終日より大きい場合,日付は結果月の最終日に設定されます。

関連項目