From 539b4c108e8eced7fef3324a9daa2ef0a538477b Mon Sep 17 00:00:00 2001 From: SanJacobs Date: Sat, 16 Apr 2022 01:41:13 +0200 Subject: Wrote function to input time and date --- src/time.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/time.h') diff --git a/src/time.h b/src/time.h index f597c2d..4dfa1ff 100755 --- a/src/time.h +++ b/src/time.h @@ -3,6 +3,7 @@ #include #include #include +#include struct moment{ signed int minutes; @@ -30,9 +31,12 @@ timeblock timesplit(timeblock &input_block, const moment splitpoint); void wind(moment &input_moment, const int minutes, const int hours, const int days); -int days_in(int month, int year); +int days_in(const int month, const int year); -std::string timeprint(moment input_moment); +std::string timeprint(const moment input_moment); -std::string timeprint(timeblock input_timeblock); +std::string timeprint(const timeblock input_timeblock); + +moment timeinput(const int or_year, const int or_month, const int or_day); +moment timeinput(); -- cgit v1.2.1