COleDateTime Class Members

Construction

COleDateTime Constructs a COleDateTime object.
GetCurrentTime Creates a COleDateTime object that represents the current time (static member function).

Attributes

GetStatus Gets the status (validity) of this COleDateTime object.
SetStatus Sets the status (validity) of this COleDateTime object.
GetAsSystemTime Converts the time in the COleDateTime object to be represented as a data structure.
GetYear Returns the year this COleDateTime object represents.
GetMonth Returns the month this COleDateTime object represents (1 – 12).
GetDay Returns the day this COleDateTime object represents (1 – 31).
GetHour Returns the hour this COleDateTime object represents (0 – 23).
GetMinute Returns the minute this COleDateTime object represents (0 – 59).
GetSecond Returns the second this COleDateTime object represents (0 – 59).
GetDayOfWeek Returns the day of the week this COleDateTime object represents (Sunday = 1).
GetDayOfYear Returns the day of the year this COleDateTime object represents (Jan 1 = 1).

Operations

SetDateTime Sets the value of this COleDateTime object to the specified date/time value.
SetDate Sets the value of this COleDateTime object to the specified date-only value.
SetTime Sets the value of this COleDateTime object to the specified time-only value.
Format Generates a formatted string representation of a COleDateTime object.
ParseDateTime Reads a date/time value from a string and sets the value of COleDateTime.

Operators

operator DATE Converts a ColeDateTime value into a DATE.
operator DATE* Converts a ColeDateTime value into a DATE*.
operator = Copies a COleDateTime value.
operator +, - Add and subtract ColeDateTime values.
operator +=, -= Add and subtract a ColeDateTime value from this COleDateTime object.
operator ==, <, <=, etc. Compare two ColeDateTime values.

Data Members

m_dt Contains the underlying DATE for this COleDateTime object.
m_status Contains the status of this COleDateTime object.

Archive/Dump

operator << Outputs a COleDateTime value to Carchive or CDumpContext.
operator >> Inputs a ColeDateTime object from CArchive.

COleDateTime OverviewHierarchy Chart