Condividi tramite


CTimeSpan Members

Construction

CTimeSpan

Constructs CTimeSpan objects in various ways.

Extraction

GetDays

Returns a value that represents the number of complete days in this CTimeSpan.

GetHours

Returns a value that represents the number of hours in the current day (–23 through 23).

GetTotalHours

Returns a value that represents the total number of complete hours in this CTimeSpan.

GetMinutes

Returns a value that represents the number of minutes in the current hour (–59 through 59).

GetTotalMinutes

Returns a value that represents the total number of complete minutes in this CTimeSpan.

GetSeconds

Returns a value that represents the number of seconds in the current minute (–59 through 59).

GetTotalSeconds

Returns a value that represents the total number of complete seconds in this CTimeSpan.

GetTimeSpan

Returns the value of the CTimeSpan object.

Conversion

Format

Converts a CTimeSpan into a formatted string.

Operators

operator + –

Adds and subtracts CTimeSpan objects.

operator += –=

Adds and subtracts a CTimeSpan object to and from this CTimeSpan.

operator == < etc.

Compares two relative time values.

Archive/Dump

Serialize64

Serializes data to or from an archive.

See Also

Concepts

CTimeSpan Class

Hierarchy Chart