Udostępnij za pośrednictwem


Czas formatowania: Klasy automatyzacji

Aby sformatować godzinę

  • Użyj Format Członkowskich albo funkcji COleDateTime lub COleDateTimeSpan utworzyć ciąg znaków, reprezentującego czas lub czas.

    COleDateTime time(1970, 12, 18, 17, 30, 0);
    // 18 December 1970, 5:30 PM
    CString s = time.Format(VAR_DATEVALUEONLY);
    // s contains the date formatted based on 
    // the current national language specifications
    // (locale ID). The time portion is ignored for 
    // formatting purposes in this case.   
    

Aby uzyskać więcej informacji, zobacz klasy COleVariant.

c1ayhyhk.collapse_all(pl-pl,VS.110).gifCo chcesz wiedzieć więcej?

Zobacz też

Koncepcje

Data i godzina: automatyzacja obsługi