diff options
author | SanJacobs | 2022-04-16 01:41:13 +0200 |
---|---|---|
committer | SanJacobs | 2022-04-16 01:41:13 +0200 |
commit | 539b4c108e8eced7fef3324a9daa2ef0a538477b (patch) | |
tree | 585ba88bc622de66ed365e2c893d0e6e9fbd8b9d /src/time.h | |
parent | b99fe6cb748be0cf018540180bf19edd1bb1a698 (diff) | |
download | satscalc-539b4c108e8eced7fef3324a9daa2ef0a538477b.tar.gz satscalc-539b4c108e8eced7fef3324a9daa2ef0a538477b.tar.bz2 satscalc-539b4c108e8eced7fef3324a9daa2ef0a538477b.zip |
Wrote function to input time and date
Diffstat (limited to 'src/time.h')
-rwxr-xr-x | src/time.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -3,6 +3,7 @@ #include <sstream> #include <ios> #include <iomanip> +#include <string.h> 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(); |