System.TDateTime.operator =

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

C++

TDateTime& operator =(const TDateTimeBase& rhs)
TDateTime& operator =(const TDateTime& rhs)
TDateTime& operator =(const double rhs)
TDateTime& operator =(const int rhs)

プロパティ

種類 可視性 ソース ユニット
function public systdate.h System TDateTime


説明

TDateTime オブジェクトの値を割り当てます。

この代入演算子は,rhs オペランドの値を TDateTime オブジェクトに割り当てます。この代入演算子は,以下の値をとることができます。

double 値または整数値。rhs の整数部が 1899 年 12 月 30 日からの経過日数,小数部がその日の時刻(24 時間制)となるように TDateTime に割り当てられる

TDateTimeBase または TDateTime オブジェクト。これらの値が TDateTime オブジェクトに割り当てられます(TDateTimeBase は TDateTime クラスの基本クラス。TDateTimeBase は,オブジェクトの値を表すパブリック Val 項目という 1 つのメンバーを持ちます)。