当前位置: 首页>>代码示例>>C++>>正文


C++ TDateTime::CurrentDate方法代码示例

本文整理汇总了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;
}
开发者ID:hasanozgan,项目名称:win-ekvs,代码行数:32,代码来源:rapor.cpp

示例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;
}
开发者ID:iamtag,项目名称:sp_mdt,代码行数:26,代码来源:TScanPort.cpp

示例3: FormShow

//---------------------------------------------------------------------------
void __fastcall TFormDLL::FormShow(TObject *Sender)
{
  TDateTime dt;
  DateTimePickerOplata->Date=dt.CurrentDate();
}
开发者ID:txe,项目名称:ieml,代码行数:6,代码来源:UnitFormDLL.cpp


注:本文中的TDateTime::CurrentDate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。