本文整理汇总了C++中TDateTime::CurrentDate方法的典型用法代码示例。如果您正苦于以下问题:C++ TDateTime::CurrentDate方法的具体用法?C++ TDateTime::CurrentDate怎么用?C++ TDateTime::CurrentDate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TDateTime
的用法示例。
在下文中一共展示了TDateTime::CurrentDate方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Kilit
void __fastcall TfrmRaporMenu::SpeedButton6Click(TObject *Sender)
{
TDateTime Tarih;
unsigned short nGun, nAy, nYil;
SpeedButton3->Flat = false;
SpeedButton4->Flat = false;
SpeedButton5->Flat = false;
SpeedButton6->Flat = true;
Kilit();
Edit_Tarih1->Enabled = true;
Edit_Tarih2->Enabled = true;
SpeedButton1->Enabled = true;
SpeedButton2->Enabled = true;
Edit_Tarih1->Color = clWhite;
Edit_Tarih2->Color = clWhite;
Edit_MusteriNo1->Color = clWhite;
Edit_MusteriNo2->Color = clWhite;
Edit1->Color = clWhite;
Edit3->Color = clWhite;
Edit2->Color = clWhite;
Edit4->Color = clWhite;
Tarih = Tarih.CurrentDate();
Tarih.DecodeDate(&nYil, &nAy, &nGun);
Edit_Tarih1->Text = "01.01."+IntToStr(nYil);
Edit_Tarih2->Text = "31.12."+IntToStr(nYil);
RaporBayragi = 3;
}
示例2:
//---------------------------------------------------------------------------
static int __stdcall cb_scancom_download_da_init(void *usr_arg)
{
TScanPort *t=(TScanPort *)usr_arg;
int i = t->GetComportIndex();
MainForm->DownLoadTimeSec[i]=0;
// access
if (MainForm->Get_EnableFactoryDatabaseLog())
{
TDateTime datetime;
TDateTime date = datetime.CurrentDate();
TDateTime time = datetime.CurrentTime();
sTime stime;
time.DecodeTime( &stime.hour, &stime.min, &stime.sec, &stime.msec);
MainForm->SetDnDate( i, date );
MainForm->SetDnStartTime( i, time );
MainForm->SetDnStartsTime( i, stime );
}
t->prefix = "DA ";
t->SyncInitProgress();
t->SyncUpdateProgressColor(clWhite, clRed);
return 0;
}
示例3: FormShow
//---------------------------------------------------------------------------
void __fastcall TFormDLL::FormShow(TObject *Sender)
{
TDateTime dt;
DateTimePickerOplata->Date=dt.CurrentDate();
}