CFileTime Members

Static Functions

GetCurrentTime

Call this static function to retrieve a CFileTime object that represents the current system date and time.

Methods

CFileTime

The constructor.

GetTime

Call this method to retrieve the time from the CFileTime object.

LocalToUTC

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

SetTime

Call this method to set the date and time stored by the CFileTime object.

UTCToLocal

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

Operators

operator -

This operator is used to perform subtraction on a CFileTime or CFileTimeSpan object.

operator !=

This operator compares two CFileTime objects for inequality.

operator +

This operator is used to perform addition on a CFileTimeSpan object.

operator +=

This operator is used to perform addition on a CFileTimeSpan object and assign the result to the current object.

operator <

This operator compares two CFileTime objects to determine the lesser.

operator <=

This operator compares two CFileTime objects to determine equality or the lesser.

operator =

The assignment operator.

operator -=

This operator is used to perform subtraction on a CFileTimeSpan object and assign the result to the current object.

operator ==

This operator compares two CFileTime objects for equality.

operator >

This operator compares two CFileTime objects to determine the larger.

operator >=

This operator compares two CFileTime objects to determine equality or the larger.

Static Data Members

Day

A static data member storing the number of 100-nanosecond intervals that make up one day.

Hour

A static data member storing the number of 100-nanosecond intervals that make up one hour.

Millisecond

A static data member storing the number of 100-nanosecond intervals that make up one millisecond.

Minute

A static data member storing the number of 100-nanosecond intervals that make up one minute.

Second

A static data member storing the number of 100-nanosecond intervals that make up one second.

Week

A static data member storing the number of 100-nanosecond intervals that make up one week.

See Also

Concepts

CFileTime Class

CFileTimeSpan Class