blob: 5087108d9f074d55b585a5e4c4eed59520ffb04c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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);
|