Contains necessary classes and functions for ELEC351
Diff: loggingMaster/dateAndTime.hpp
- Revision:
- 2:e2b885367ba8
- Parent:
- 0:f44c89c33601
- Child:
- 5:becb1545229d
--- a/loggingMaster/dateAndTime.hpp Sun Dec 24 21:50:10 2017 +0000 +++ b/loggingMaster/dateAndTime.hpp Wed Dec 27 15:28:20 2017 +0000 @@ -4,29 +4,24 @@ typedef struct __attribute__ ((packed)) { // Store one after another - int day; // Current Day - int mnt; // Current Month - int yr; // Current Year - - int sec; // Current Seconds - int min; // Current Minutes - int hr; // Current Hours - -} TDS_DT; // Type Def Struct _ Date Time + 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 +class C_DT // Class _ Date Time { - // Constructorless class - constructor not needed + // Constructorless class - constructor not needed private: - TDS_DT date_time; // TDS_DT format of storing Date & Time + TDS_DT date_time; // TDS_DT format of storing Date & Time public: TDS_DT getDT(); // Get Date & Time - void setT(int, int, int); // set Date - void setD(int, int, int); // Set Time + void setD(int, int, int); // set Date + void setT(int, int, int); // Set Time };