summaryrefslogtreecommitdiff
path: root/clock.h
diff options
context:
space:
mode:
Diffstat (limited to 'clock.h')
-rw-r--r--clock.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/clock.h b/clock.h
index 51a7a59..9c7e196 100644
--- a/clock.h
+++ b/clock.h
@@ -1,6 +1,11 @@
#ifndef _CLOCK_H
#define _CLOCK_H
+#define FLAG_SUMMERTIME_PENDING 1
+#define FLAG_CEST 2
+#define FLAG_CET 4
+#define FLAG_LEAP_SECOND 8
+
struct time {
u8 second;
u8 minute;
@@ -9,6 +14,7 @@ struct time {
u8 wday;
u8 month;
u8 year;
+ u8 flags;
};
extern struct time time;
@@ -16,5 +22,7 @@ extern struct time time;
void display_date(void);
void display_time(void);
void clock( void );
+u8 is_cet(void);
+u8 is_cest(void);
#endif /* _CLOCK_H */