53 unsigned int munixTime;
56 StDbTime(): munixTime(0), mdateTime(0) {};
57 StDbTime(
unsigned int utime): mdateTime(0) { munixTime = utime;};
59 StDbTime(
const char* dtime): munixTime(0) {
if(dtime){
60 mdateTime=
new char[strlen(dtime)+1];
61 strcpy(mdateTime,dtime);
62 }
else {mdateTime=0;}};
66 mdateTime=
new char[strlen(time.mdateTime)+1];
67 strcpy(mdateTime,time.mdateTime);
69 munixTime=time.munixTime;
71 ~
StDbTime() {
if(mdateTime)
delete [] mdateTime; }
73 void setUnixTime(
unsigned int utime) { munixTime = utime;}
74 void setDateTime(
const char* dtime) {
if(!dtime)
return;
75 if(mdateTime)
delete [] mdateTime;
76 mdateTime=
new char[strlen(dtime)+1];
77 strcpy(mdateTime,dtime); };
79 void setTime(
unsigned int utime,
const char* dtime){
82 unsigned int getUnixTime() {
return munixTime; }
83 char* getDateTime(){
return mdateTime; }