From 362915a2f3065b3b60dd90d6869fca7274d31cf0 Mon Sep 17 00:00:00 2001 From: theskywinds Date: Fri, 20 Jun 2025 16:16:19 +0200 Subject: [PATCH] Progress into understanding time --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 5b0ca61..fa3954e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -14,13 +14,15 @@ int main(int argc, char **argv) { auto fmt = std::make_shared(); app.formatter(fmt); - - // Define options int p = 0; app.add_option("-p", p, "Parameter"); CLI11_PARSE(app, argc, argv); + [[maybe_unused]] std::time_t result = std::time(nullptr); + std::tm time = *std::localtime(&result); + std::cout << std::asctime(&time); + std::cout << "Parameter value: " << p << std::endl; return 0; }