aboutsummaryrefslogtreecommitdiff
path: root/src/time.h
diff options
context:
space:
mode:
authorSanJacobs2022-04-06 22:48:33 +0200
committerSanJacobs2022-04-06 22:48:33 +0200
commit57c57abcda5de8f2d2f715755db7530e318a9e62 (patch)
treefa122141a551310d359f8fc8e370ec51e7e9237b /src/time.h
parentea1338197382ccff14c4c831657c6a1208fd6873 (diff)
downloadsatscalc-57c57abcda5de8f2d2f715755db7530e318a9e62.tar.gz
satscalc-57c57abcda5de8f2d2f715755db7530e318a9e62.tar.bz2
satscalc-57c57abcda5de8f2d2f715755db7530e318a9e62.zip
Some progress
Diffstat (limited to 'src/time.h')
-rwxr-xr-xsrc/time.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/time.h b/src/time.h
new file mode 100755
index 0000000..5087108
--- /dev/null
+++ b/src/time.h
@@ -0,0 +1,28 @@
+#pragma once
+#include <iostream>
+
+struct moment{
+ signed int minutes;
+ signed int hours; // 24-hour format. 23:59 progresses to 00:00
+ signed int day;
+ signed int month;
+ signed int year;
+};
+
+struct timeblock{
+ moment start;
+ moment end;
+};
+
+class day{
+
+};
+
+timeblock timesplit(timeblock &input_block, moment splitpoint);
+
+void wind(moment &input_moment, int minutes, int hours, int days);
+
+int days_in(int month, int year);
+
+std::string timeprint(moment input_moment);
+