Titus Information Systems, Inc.

Standard Library
TPresent Class

This class is inherited by the TTime, the TDate, and the TDateTime classes to access and maintain the current date and time.  All member functions retrieve the current date and time from the operating system each time they are called so that they all return the current date and time.  The public member functions are as follows:

TPresent::TPresent()
This is the constructor.  It sets the internal date and time to the current date/time.
CTime TPresent::GetPresent()
void TPresent::GetDate(char*Date)
void TPresent::GetDate(char*Century, char*Year, char*Month, char*Day)
void TPresent::GetTime(int*Hour, int*Minute, int*Second)
void TPresent::GetDate(CString&Text)
void TPresent::GetTime(CString&Text)
These member functions return the current date and/or time in the format requested.  The CString format for date is mm/dd/yyyy and time is hh:mm:ss.
int TPresent::GetYear()
int TPresent::GetMonth()
int TPresent::GetDay()
int TPresent::GetHour()
int TPresent::GetMinute()
int TPresent::GetSecond()
These member functions return the respective portion of the present date or time which is stored in the TPresent::Present data member.
CTime TPresent::Present
This data member may be inherited.  It contains the date and time when the class was created or the last member function was accessed.


[ 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 | TTime | TDate | TDateTime | 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.