VC中CTime时间

    技术2022-05-11  135

    获得当前日期和时间CTime tm=CTime::GetCurrentTime(); CString str=tm.Format("%Y-%m-%d");在VC中,我们可以借助CTime时间类,获取系统当前日期,具体使用方法如下:CTime t = CTime::GetCurrentTime(); //获取系统日期int d=t.GetDay(); //获得几号int y=t.GetYea

    最新回复(0)