Luka Danilovic
/
ELEC351_10497267_SUBMISSION
ELEC351 SUBMISSION - Same as on the DLE
Diff: ELEC351_LIBRARY/loggingMaster/dateAndTime.hpp
- Revision:
- 0:c66224a27cf8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ELEC351_LIBRARY/loggingMaster/dateAndTime.hpp Wed Jan 10 09:49:43 2018 +0000 @@ -0,0 +1,28 @@ +#ifndef __dateAndTime__ //Inclusion safeguards +#define __dateAndTime__ + + +typedef struct __attribute__ ((packed)) { // Store one after another + + int day, mnt, yr; // Current Date + int sec, min, hr; // Current Time + +} TDS_DT; // Type Def Struct _ Date Time + + +class C_DT // Class _ Date Time +{ + + // Constructorless class - constructor not needed + +private: + TDS_DT date_time; // TDS_DT format of storing Date & Time + +public: + TDS_DT getDT(); // Get Date & Time + void setD(int, int, int); // set Date + void setT(int, int, int); // Set Time + +}; + +#endif \ No newline at end of file