aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSanJacobs2022-04-16 01:41:13 +0200
committerSanJacobs2022-04-16 01:41:13 +0200
commit539b4c108e8eced7fef3324a9daa2ef0a538477b (patch)
tree585ba88bc622de66ed365e2c893d0e6e9fbd8b9d /src/main.cpp
parentb99fe6cb748be0cf018540180bf19edd1bb1a698 (diff)
downloadsatscalc-539b4c108e8eced7fef3324a9daa2ef0a538477b.tar.gz
satscalc-539b4c108e8eced7fef3324a9daa2ef0a538477b.tar.bz2
satscalc-539b4c108e8eced7fef3324a9daa2ef0a538477b.zip
Wrote function to input time and date
Diffstat (limited to 'src/main.cpp')
-rwxr-xr-xsrc/main.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3c12dae..a952bbe 100755
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -58,6 +58,7 @@ int main(int argc, char* argv[])
moment erronious_splitpoint{0, 10, 27, 11, 2010};
std::cout << timeprint(timesplit(second_half, erronious_splitpoint));
+
std::cout << "\n\n --- TIME MATH TEST ---\n\n";
moment testtime{30, 8, 25, 2, 2012};
@@ -89,8 +90,22 @@ int main(int argc, char* argv[])
std::cout << "\nRewinding 10 days...\n";
wind(testtime, 0, 0, -10);
std::cout << "Testtime: " << timeprint(testtime) << std::endl;
+
+
+ std::cout << "\n\n --- TIME INPUT TEST ---\n\n";
+
+ moment inputmoment = timeinput();
+ std::cout << "Time reveived: " << timeprint(inputmoment) << std::endl;
+ moment inputmoment2 = timeinput(2012, 11, 26);
+ std::cout << "Time reveived: " << timeprint(inputmoment2) << std::endl;
}
}
+ std::cout << "satscalc (C++ Edition)\n";
+ std::cout << "Copyright 2022 Sander J. Skjegstad.\n";
+ std::cout << "This is free software with ABSOLUTELY NO WARRENTY.\n";
+ std::cout << "It does NOT give financial advice.\n\n";
+
+ std::cout << "-----\nStep 1: Adding the days\n\n";
return 0;
}