![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Proj 324 Final
Fork of ELEC351_Group_T by
TIME.hpp
- Committer:
- chills
- Date:
- 2018-01-07
- Revision:
- 34:c0b8705f183d
- Parent:
- 33:3b5096f0126a
- Child:
- 52:99915f5240b2
File content as of revision 34:c0b8705f183d:
#ifndef _TIME_HPP_ //Known as header guards #define _TIME_HPP_ #include "mbed.h" #include "rtos.h" #include <string> #include <iostream> #include <sstream> #define Days_In_Month 30.436875 #define second 1 #define minute 60 #define hour 3600 #define day 86400 #define week 604800 #define month 2629743 #define year 31556926 int get_current_time(); void set_new_date(int days, int months, int years); void set_new_time(int hours, int minutes, int seconds); void Add_Second(); void Subtract_Second(); void Add_Minute(); void Subtract_Minute(); void Add_Hour(); void Subtract_Hour(); void Add_Day(); void Subtract_Day(); void Add_Month(); void Subtract_Month(); void Add_Year(); void Subtract_Year(); #endif