Share via


CTime::FormatGmt

CString FormatGmt( LPCTSTR pFormat ) const;

CString FormatGmt( UINT nFormatID ) const;

Return Value

A CString that contains the formatted time.

Parameters

pFormat

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

nFormatID

The ID of the string that identifies this format.

Remarks

Generates a formatted string that corresponds to this CTime object. The time value is not converted and thus reflects UTC.

Example

See the example for CTime::Format.

CTime OverviewClass MembersHierarchy Chart

See Also   CTime::Format