aboutsummaryrefslogtreecommitdiffstats
path: root/date.h
diff options
context:
space:
mode:
authorEl-BG-1970 <elouan.gros.fr@gmail.com>2021-10-13 11:58:17 +0200
committerEl-BG-1970 <elouan.gros.fr@gmail.com>2021-10-13 11:58:17 +0200
commit8140d75aeb50e45aaa2d4ce34bfc84509fd2e91d (patch)
treed8101114f28661364135f73ad72595c258b33d60 /date.h
downloadorg-to-conky-8140d75aeb50e45aaa2d4ce34bfc84509fd2e91d.tar.gz
first commit
Diffstat (limited to 'date.h')
-rw-r--r--date.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/date.h b/date.h
new file mode 100644
index 0000000..649b90f
--- /dev/null
+++ b/date.h
@@ -0,0 +1,25 @@
+#ifndef __DATE_H__
+#include <stdbool.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+
+typedef struct Date {
+ int day;
+ int month;
+ int year;
+} Date;
+
+Date extract_date(char *str);
+bool smaller(Date a, Date b);
+bool eql(Date a, Date b);
+bool zero(Date a);
+
+void print_date(Date date);
+char *print_date_to_string(Date date);
+
+Date today();
+Date nextweek(Date td);
+
+#define __DATE_H__
+#endif