Sdílet prostřednictvím


Formátování čas: Automatizace třídy

Chcete-li formátovat čas

  • Použití Formát členské funkce buď COleDateTime nebo COleDateTimeSpan vytvořte znakový řetězec představující čas nebo uplynulý čas.

    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.   
    

Další informace viz třída COleVariant.

c1ayhyhk.collapse_all(cs-cz,VS.110).gifCo chcete vědět více?

Viz také

Koncepty

Datum a čas: podpora automatizace