Titus Information Systems, Inc.

Standard Library
TDateTime Class

This class is inherited from both TTime and TDate.  An instance of this class is used by the programmer to set, access, add to, subtract from, and otherwise maintain both dates and time of day.  The public member functions are as follows:

TDateTime::TDateTime()
This is the default constructor.  It sets the internal date to the current date and the internal time to the current time of day.
TDateTime::TDateTime(CTime Date)
TDateTime::TDateTime(int Century, int Year, int Month, int Day, int Hour, int Minute, int Second)
These constructors set the internal date and time to those specified.
void TDateTime::GetDate(char*Century, char*Year, char*Month, char*Day, int*Hour, int*Minute, int*Second)
void TDateTime::GetTime(char*Century, char*Year, char*Month, char*Day, int*Hour, int*Minute, int*Second)
void TDateTime::GetDate(CString&Text)
void TDateTime::GetTime(CString&Text)
void TDateTime::GetDate(CTime&Text)
void TDateTime::GetTime(CTime&Text)
These member functions return the internal date and time in the format requested.  The CString format is mm/dd/yyyy at hh:mm:ss.  Both the TDateTime::GetDate() and TDate::GetTime() functions return both the date and time.
void TDateTime::SetDate()
void TDateTime::SetTime()
void TDateTime::SetDate(TDateTime Date)
void TDateTime::SetTime(TDateTime Date)
void TDateTime::SetDate(CTime Date)
void TDateTime::SetTime(CTime Date)
BOOL TDateTime::SetDate(int Century, int Year, int Month, int Day, int Hour, int Minute, int Second)
BOOL TDateTime::SetTime(int Century, int Year, int Month, int Day, int Hour, int Minute, int Second)
TDateTime& TDateTime::operator=(TDateTime Date)
TDateTime& TDateTime::operator=(CTime Date)
These member functions set the internal date and time from the format specified.  Both the TDateTime::SetDate() and TDate::SetTime() functions set both the date and time.
void TDateTime::AddDate(TDateTime Date)
void TDateTime::AddTime(TDateTime Date)
TDateTime& TDateTime::operator+(TDateTime Date)
void TDateTime::SubtractDate(TDateTime Date)
void TDateTime::SubtractTime(TDateTime Date)
TDateTime& TDateTime::operator-(TDateTime Date)
These member functions adjust the internal date and time with the date and time specified.  Both the TDateTime::AddDate() and TDate::AddTime() functions add to both the date and time.  Both the TDateTime::SubtractDate() and TDate::SubtractTime() functions subtract from both the date and time.
BOOL TDateTime::operator==(TDateTime& Date)
BOOL TDateTime::operator!=(TDateTime& Date)
BOOL TDateTime::operator>(TDateTime& Date)
BOOL TDateTime::operator<(TDateTime& Date)
BOOL TDateTime::operator>=(TDateTime& Date)
BOOL TDateTime::operator<=(TDateTime& Date)
These member functions compare the internal date and time with the date and time specified.  All these operators compare both the date and time.


[ CBinaryFile | TCommandLineInfo | CCommaFile | TDateCtrl | CDDE | CDdeClient | CDdeServer ]
[ CDirectoryLocator | CDirectoryDialog | CDirectoryFind | CDirectoryNew | CFileCopy | TFrameWnd ]
[ InterfaceExcel | CMaintFn | CPrintFile | CProcDialog | TPrintDialog | CProcPropertyPage ]
[ CProgress | CRegistry | CSDisCreate | CSDisFile | CSDisPage | CSDisView | CTableFile ]
[ CTaskIcon | TPresent | TTime | TDate | CTransferData | TWinApp | CXlTable ]

[ Stand-alone Programs | Standard Library | Conversion Functions | Utility Functions | COBOL Functions ]
[ Windows NT Library | COBOL Library | COBOL Interface | Command Prompt Abbreviations | Purchase Instructions ]

[ Home | Areas of Expertise | "We Do Windows" | Clients and Projects | Software Samples | Package Software Available ]
[ Contact Information | Business Software Philosophy | Church Software Philosophy ]
All contents of this web site are Copyright © Titus Information Systems, Inc., Phoenix, Arizona, U.S.A.