Add date support to time manager
This commit is contained in:
@@ -11,6 +11,12 @@ typedef struct {
|
||||
unsigned minute;
|
||||
} Time;
|
||||
|
||||
typedef struct {
|
||||
unsigned year;
|
||||
unsigned month;
|
||||
unsigned day;
|
||||
} Date;
|
||||
|
||||
/**
|
||||
* Initialize the time module.
|
||||
*/
|
||||
@@ -26,4 +32,14 @@ Time get_time(void);
|
||||
*/
|
||||
void set_time(Time time);
|
||||
|
||||
/**
|
||||
* Get the current date.
|
||||
*/
|
||||
Date get_date(void);
|
||||
|
||||
/**
|
||||
* Set the date.
|
||||
*/
|
||||
void set_date(Date date);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user