Add date support to time manager

This commit is contained in:
2023-05-16 22:32:19 +01:00
parent a4a4a035f2
commit 2ca513b98d
2 changed files with 78 additions and 3 deletions

View File

@@ -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