Operators
|
|
operator =
|
Assigns new time-span values.
|
operator +
|
Adds CTimeSpan objects.
|
operator –
|
Subtracts CTimeSpan objects.
|
operator +=
|
Adds a CTimeSpan object to this CTimeSpan.
|
operator –=
|
Subtracts a CTimeSpan object from this CTimeSpan.
|
operator == < etc.
|
Compares two relative time values.
|
Archive/Dump
|
|
operator <<
|
Outputs a CTimeSpan object to CArchive or CDumpContext.
|
operator >>
|
Inputs a CTimeSpan object from CArchive
|
Construction
|
|
CTimeSpan
|
Constructs CTimeSpan objects in various ways.
|
Extraction
|
|
GetDays
|
Returns the number of complete days in this CTimeSpan.
|
GetHours
|
Returns the number of hours in the current day (–23 through 23).
|
GetTotalHours
|
Returns the total number of complete hours in this CTimeSpan.
|
GetMinutes
|
Returns the number of minutes in the current hour (–59 through 59).
|
GetTotalMinutes
|
Returns the total number of complete minutes in this CTimeSpan.
|
GetSeconds
|
Returns the number of seconds in the current minute (–59 through 59).
|
GetTotalSeconds
|
Returns the total number of complete seconds in this CTimeSpan.
|
Conversion
|
|
Format
|
Converts a CTimeSpan into a formatted string.
|