GetHour();
GetMinute();
GetSecond();

解决方案 »

  1.   

    asctime,_ftime,gmtime,localtime,strftime,time
    具体自己看吧
      

  2.   

    CTime t = CTime::GetCurrentTime();
    CString str;
    str.Format("%s",t.Format("%H点%M分%S秒"));
      

  3.   

    查msdn吧
    Extraction GetTime Returns a time_t that corresponds to this CTime object. 
    GetYear Returns the year that this CTime object represents. 
    GetMonth Returns the month that this CTime object represents (1 through 12). 
    GetDay Returns the day that this CTime object represents (1 through 31). 
    GetHour Returns the hour that this CTime object represents (0 through 23). 
    GetMinute Returns the minute that this CTime object represents (0 through 59). 
    GetSecond Returns the second that this CTime object represents (0 through 59). 
    GetDayOfWeek Returns the day of the week (1 for Sunday, 2 for Monday, and so forth).