Share via


CTime::FormatGmt

Generates a formatted string that corresponds to this CTime object.

CString FormatGmt( 
   LPCTSTR pszFormat  
) const; 
CString FormatGmt( 
   UINT nFormatID  
) const;

Parameters

  • pszFormat
    Specifies a formatting string similar to the printf formatting string. See the run-time function strftime for details.

  • nFormatID
    The ID of the string that identifies this format.

Return Value

A CString that contains the formatted time.

Remarks

The time value is not converted and thus reflects UTC.

Example

See the example for CTime::Format.

Requirements

Header: atltime.h

See Also

Reference

CTime Class

Hierarchy Chart

CTime::Format

Other Resources

CTime Members