Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
This method throws an exception if the date-time value to format does not range from midnight, January 1, 1970 through December 31, 3000 Universal Coordinated Time (UTC).
Example
See the example for CTime::Format.
Requirements
Header: atltime.h