ccTime |
09/16/99 |
Author:
Daniel.Lindh@Home.se ICQ: 7983755 HOMEPAGE: home.bip.net/CyberCow Copyright © Cyber Cow 1995 - 1999. OverView |
Overview |
#include <ccTime.h> Hierarchy Chart
|
Class Members | ||||||||||||||
Construction Public:
Input/Output Public:
|
ccEdit::ccEdit | ||||
ccTime(); ccTime( CString lsDataBaseDateTime ); Return Value:
Arguments:
Remarks: Create the ccTime object. Example: ccTime oTime1; ccTime oTime2( "1990-12-30 12:00:14" ); |
ccEdit::setDate | ||||||||||
void setDate( int aiYear, int aiMonth, int aiDay ); Return Value:
Arguments:
Remarks: Set the ccTime objects date. The time in the object will be set to "00:00:00". If a date in the argument are to high or low it will be validated to a valid date. Example: ccTime oTime; oTime.setDate( 2210, 12, 24 ); oTime.setDate( "2210-12-24" ); |
ccEdit::getDate | ||||
CString getDate(); Return Value:
Arguments:
Remarks: Return the date in the ccTime object. Example: ccTime oTime; oTime.setDate( 2210, 12, 24 ); CString lsDate = oTime.getDate(); |
ccEdit::setTime | ||||||||||
void setTime( int aiHour, int aiMin, int aiSec ); Return Value:
Arguments:
Remarks: Set the ccTime objects time. The date in the object will be set to "1901:01:01". If a time in the argument are to high or low it will be validated to a valid date. Example: ccTime oTime; oTime.setTime( 14, 59, 59 ); oTime.setTime( "14:59:59" ); |
ccEdit::getTime | ||||
CString getTime(); Return Value:
Arguments:
Remarks: Return the time in the ccTime object. Example: ccTime oTime; oTime.setTime( 4, 44, 00 ); CString lsTime = oTime.getTime(); |
ccEdit::setDateTime | ||||||||||||||||
void setDateTime(int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec); Return Value:
Arguments:
Remarks: Set the ccTime objects date and time. If a date or time in the argument are to high or low it will be validated to a valid date and time. Example: ccTime oTime; oTime.setDateTime( 2001, 12, 24, 12, 43, 44 ); oTime.setDateTime( "2001-12-24 12:43:44" ); |
ccEdit::getDateTime | ||||
**constructor();** Return Value:
Arguments:
Remarks: Return the date and time in the ccTime object. Example: ccTime oTime; oTime.setDateTime( 2001, 12, 24, 12, 43, 44 ); CString lsDateTime = oTime.GetDateTime(); |