-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcDateTime_t.h
More file actions
33 lines (18 loc) · 792 Bytes
/
cDateTime_t.h
File metadata and controls
33 lines (18 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef CDateTime_t_H_
#define CDateTime_t_H_
#include "cTime_t.h"
#include "cDate_t.h"
class cDateTime_t {
public:
cDateTime_t(); //CTOR from current date & time
cDateTime_t(int day, int month, int year, int hour, int minute, int second); //CTOR from given date & time
cDateTime_t(const cTime_t &t, const cDate_t &d); //CTOR from cDate_t & cTime_t objects
cDateTime_t(const cDateTime_t &t); //Copy CTOR
~cDateTime_t(); //DTOR
const cDateTime_t &operator+(const cTime_t &t); //Add cTime_t object to cDateTime object
const cDateTime_t &operator=(const cDateTime_t &t); //Assigment Operator
void print() const; //Print object
cTime_t time_p;
cDate_t date_p;
};
#endif /* CDateTime_t_H_ */