System.DateUtils.EndOfTheYear

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

Delphi

function EndOfTheYear(const AValue: TDateTime): TDateTime;

C++

extern DELPHI_PACKAGE System::TDateTime __fastcall EndOfTheYear(const System::TDateTime AValue);

プロパティ

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

説明

指定された TDateTime 値により特定される年の最終日の最後のミリ秒を表す TDateTime 値を返します。

EndOfTheYear 関数は,AValue で指定された TDateTime と同じ年の表現可能な最後の瞬間を返します。つまり,EndOfTheYear は,AValue の時刻部分を午後 11 時 59 分 59 秒 999 ミリ秒で置換し,日を 12 月 31 日に変更して,その結果を返します。

関連項目