#include <gcalendar.h>
Inheritance diagram for gDateTime:
Public Types | |
enum | eKindTime { e_Now } |
Public Member Functions | |
gDateTime (t_stamp aStamp=0) | |
gDateTime (int iYear, int iMonth, int iDay, t_uint8 uHour=0, t_uint8 uMin=0, t_uint8 uSec=0) | |
gDateTime (eKindTime aKind) | |
virtual | ~gDateTime () |
virtual bool | IsOk () |
virtual char * | StorageName () |
virtual void | Reset () |
virtual int | SetError (int opError) |
virtual t_stamp | GetTimeStamp () |
virtual bool | SetTimeStamp (t_stamp aStamp) |
t_uint8 | DaysOfMonth (int aYear, t_uint8 aMonth) |
virtual gStorage * | NewObject () |
virtual t_uchar * | ToString (t_uchar *uBuf) |
virtual bool | SaveGuts (FILE *f) |
virtual bool | RestoreGuts (FILE *f) |
Public Attributes | |
int | lastOpError |
t_int16 | year |
t_uint8 | month |
t_uint8 | day |
t_uint8 | hour |
t_uint8 | minu |
t_uint8 | sec |
t_uint8 | wday |
t_uint16 | yday |
t_int8 | isdst |
Static Public Attributes | |
static int | minimumYear = 1900 |
Protected Member Functions | |
int | thisCalCheck () |
int | thisDateTimeCheck (gDateTime &aDtTm, int minYear) |
int | thisDateCheck (int aYear, t_uint8 aMonth, t_uint8 aDay, int minYear) |
int | thisTimeCheck (t_uint8 aHour, t_uint8 aMin, t_uint8 aSec) |
int | thisConvertFromStamp (t_stamp aStamp) |
int | thisConvertToStamp (gDateTime &aDtTm, t_stamp &aStamp) |
int | thisConvertTo_libc_tm (gDateTime &aDtTm, struct tm *pTM) |
Static Protected Attributes | |
static const t_uint8 | tblCalDurMonth [13] |
|
Definition at line 9 of file gcalendar.h. |
|
Definition at line 24 of file gcalendar.cpp. Referenced by NewObject(). |
|
Definition at line 40 of file gcalendar.cpp. |
|
Definition at line 58 of file gcalendar.cpp. |
|
Definition at line 74 of file gcalendar.cpp. |
|
Definition at line 119 of file gcalendar.cpp. Referenced by thisDateCheck(). |
|
Definition at line 107 of file gcalendar.cpp. Referenced by gRandom::GarbleSeed(), gTimeStamp::gTimeStamp(), and NewObject(). |
|
Reimplemented from gStorage. Definition at line 78 of file gcalendar.cpp. |
|
Implements gStorage. Definition at line 128 of file gcalendar.cpp. |
|
Reimplemented from gStorage. Definition at line 89 of file gcalendar.cpp. Referenced by RestoreGuts(). |
|
Implements gStorage. Definition at line 152 of file gcalendar.cpp. |
|
Implements gStorage. Definition at line 143 of file gcalendar.cpp. |
|
Reimplemented from gStorage. Definition at line 101 of file gcalendar.cpp. Referenced by GetTimeStamp(), RestoreGuts(), and SetTimeStamp(). |
|
Definition at line 114 of file gcalendar.cpp. |
|
Reimplemented from gStorage. Definition at line 84 of file gcalendar.cpp. |
|
Definition at line 175 of file gcalendar.cpp. Referenced by gDateTime(), and IsOk(). |
|
Definition at line 207 of file gcalendar.cpp. Referenced by gDateTime(), and SetTimeStamp(). |
|
Definition at line 249 of file gcalendar.cpp. Referenced by thisConvertToStamp(). |
|
Definition at line 227 of file gcalendar.cpp. Referenced by GetTimeStamp(), and RestoreGuts(). |
|
Definition at line 189 of file gcalendar.cpp. Referenced by thisDateTimeCheck(). |
|
Definition at line 180 of file gcalendar.cpp. Referenced by thisCalCheck(), and thisConvertTo_libc_tm(). |
|
Definition at line 200 of file gcalendar.cpp. Referenced by thisDateTimeCheck(). |
|
Implements gStorage. Definition at line 134 of file gcalendar.cpp. |
|
Definition at line 23 of file gcalendar.h. Referenced by Reset(), RestoreGuts(), SaveGuts(), thisConvertFromStamp(), thisConvertTo_libc_tm(), thisDateTimeCheck(), and ToString(). |
|
Definition at line 24 of file gcalendar.h. Referenced by Reset(), RestoreGuts(), SaveGuts(), thisConvertFromStamp(), thisConvertTo_libc_tm(), thisDateTimeCheck(), and ToString(). |
|
Definition at line 27 of file gcalendar.h. Referenced by IsOk(), Reset(), thisConvertFromStamp(), and thisConvertTo_libc_tm(). |
|
Definition at line 20 of file gcalendar.h. Referenced by gDateTime(), IsOk(), Reset(), RestoreGuts(), and SetError(). |
|
Definition at line 7 of file gcalendar.cpp. Referenced by thisCalCheck(). |
|
Definition at line 24 of file gcalendar.h. Referenced by Reset(), RestoreGuts(), SaveGuts(), thisConvertFromStamp(), thisConvertTo_libc_tm(), thisDateTimeCheck(), and ToString(). |
|
Definition at line 22 of file gcalendar.h. Referenced by Reset(), RestoreGuts(), SaveGuts(), thisConvertFromStamp(), thisConvertTo_libc_tm(), thisDateTimeCheck(), and ToString(). |
|
Definition at line 24 of file gcalendar.h. Referenced by Reset(), RestoreGuts(), SaveGuts(), thisConvertFromStamp(), thisConvertTo_libc_tm(), thisDateTimeCheck(), and ToString(). |
|
Initial value: { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31} Definition at line 8 of file gcalendar.cpp. Referenced by DaysOfMonth(). |
|
Definition at line 25 of file gcalendar.h. Referenced by Reset(), thisConvertFromStamp(), and thisConvertTo_libc_tm(). |
|
Definition at line 26 of file gcalendar.h. Referenced by Reset(), thisConvertFromStamp(), and thisConvertTo_libc_tm(). |
|
Definition at line 21 of file gcalendar.h. Referenced by Reset(), RestoreGuts(), SaveGuts(), thisConvertFromStamp(), thisConvertTo_libc_tm(), thisDateTimeCheck(), and ToString(). |