Plymouth ELEC351 Group T / Mbed OS ELEC351

Dependencies:   BME280 BMP280 TextLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TIME.hpp Source File

TIME.hpp

00001 #ifndef _TIME_HPP_ //Known as header guards
00002 #define _TIME_HPP_
00003 
00004 #include "mbed.h"
00005 #include "rtos.h"
00006 #include <string>
00007 #include <iostream>
00008 #include <sstream>
00009 
00010 #define Days_In_Month 30.436875
00011 #define second 1
00012 #define minute 60
00013 #define hour 3600
00014 #define day 86400
00015 #define week 604800
00016 #define month 2629743
00017 #define year 31556926
00018 
00019 int get_current_time();
00020 void set_new_date(int days, int months, int years);
00021 void set_new_time(int hours, int minutes, int seconds);
00022 void Add_Second();
00023 void Subtract_Second();
00024 void Add_Minute();
00025 void Subtract_Minute();
00026 void Add_Hour();
00027 void Subtract_Hour();
00028 void Add_Day();
00029 void Subtract_Day();
00030 void Add_Month();
00031 void Subtract_Month();
00032 void Add_Year();
00033 void Subtract_Year();
00034 
00035 #endif