Partager via


CFileTime::UTCToLocal

Call this method to convert time based on the Coordinated Universal Time (UTC) to local file time.

CFileTime UTCToLocal( ) const throw( );

Return Value

Returns a CFileTime object containing the time in local file time format.

Example

// Convert a UTC time to local file time format
CFileTime myUTC_FT, myL_FT;
// Get system time (in UTC format)
myUTC_FT = CFileTime::GetCurrentTime();
// Convert to local file time
myL_FT = myUTC_FT.UTCToLocal();         

Requirements

Header: atltime.h

See Also

Reference

CFileTime Class

CFileTime::LocalToUTC