CFileTimeSpan Class

This class provides methods for managing relative date and time values associated with a file.

class CFileTimeSpan

Members

Public Constructors

Name

Description

CFileTimeSpan::CFileTimeSpan

The constructor.

Public Methods

Name

Description

CFileTimeSpan::GetTimeSpan

Call this method to retrieve the time span from the CFileTimeSpan object.

CFileTimeSpan::SetTimeSpan

Call this method to set the time span of the CFileTimeSpan object.

Public Operators

Name

Description

CFileTimeSpan::operator -

Performs subtraction on a CFileTimeSpan object.

CFileTimeSpan::operator !=

Compares two CFileTimeSpan objects for inequality.

CFileTimeSpan::operator +

Performs addition on a CFileTimeSpan object.

CFileTimeSpan::operator +=

Performs addition on a CFileTimeSpan object and assign the result to the current object.

CFileTimeSpan::operator <

Compares two CFileTimeSpan objects to determine the lesser.

CFileTimeSpan::operator <=

Compares two CFileTimeSpan objects to determine equality or the lesser.

CFileTimeSpan::operator =

The assignment operator.

CFileTimeSpan::operator -=

Performs subtraction on a CFileTimeSpan object and assign the result to the current object.

CFileTimeSpan::operator ==

Compares two CFileTimeSpan objects for equality.

CFileTimeSpan::operator >

Compares two CFileTimeSpan objects to determine the larger.

CFileTimeSpan::operator >=

Compares two CFileTimeSpan objects to determine equality or the larger.

Remarks

This class provides methods for managing relative periods of time often encountered when performing operations concerning when a file was created, last accessed or last modified. The methods of this class are frequently used in conjunction with CFileTime class objects.

Example

See the example for CFileTime::Millisecond.

Requirements

Header: atltime.h

See Also

Reference

FILETIME

CFileTime Class

Hierarchy Chart

Other Resources

ATL/MFC Shared Classes