Luka Danilovic
/
ELEC351_10497267_SUBMISSION
ELEC351 SUBMISSION - Same as on the DLE
ELEC351_LIBRARY/loggingMaster/dateAndTime.hpp
- Committer:
- Luka_Danilovic
- Date:
- 2018-01-10
- Revision:
- 0:c66224a27cf8
File content as of revision 0:c66224a27cf8:
#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