diff options
author | San Jacobs | 2022-04-03 14:40:19 +0200 |
---|---|---|
committer | San Jacobs | 2022-04-03 14:40:19 +0200 |
commit | f2fb044281983cd6806f84dda56ebc26655b6ee1 (patch) | |
tree | 5500a59ca629e87678fb5f78855a2e4c7aadd0ed /src/time.h | |
parent | ea1338197382ccff14c4c831657c6a1208fd6873 (diff) | |
download | satscalc-f2fb044281983cd6806f84dda56ebc26655b6ee1.tar.gz satscalc-f2fb044281983cd6806f84dda56ebc26655b6ee1.tar.bz2 satscalc-f2fb044281983cd6806f84dda56ebc26655b6ee1.zip |
Progress made on C++ version
Diffstat (limited to 'src/time.h')
-rw-r--r-- | src/time.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/time.h b/src/time.h new file mode 100644 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); + |