System.DateUtils.StartOfTheYear
Delphi
function StartOfTheYear(const AValue: TDateTime): TDateTime;
C++
extern DELPHI_PACKAGE System::TDateTime __fastcall StartOfTheYear(const System::TDateTime AValue);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.DateUtils.pas System.DateUtils.hpp |
System.DateUtils | System.DateUtils |
説明
指定された TDateTime で特定された年の最初の日の午前 0 時 0 分 0 秒 0 ミリ秒を表す TDateTime を返します。
StartOfTheYear 関数は,AValue で指定された TDateTime と同じ年の表現可能な最初の瞬間を返します。つまり,StartOfTheYear は AValue の時刻部分を 0 で置換し,日を 1 月 1 日に変更してその結果を返します。