diff --git a/CHANGELOG.md b/CHANGELOG.md index 32b17a7..924ab9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ -Change Log for timeprint +Change Log for `timeprint` ================================================================================ -## v2.0.0-beta +## v2.0.0 (2018-02-26) - Renamed from currtime to timeprint. - Add new -- switch variants (--help, --codeChar, --timeZone, and so on). - -e is now -%/--codeChar to eliminate confusion between escape sequences and diff --git a/tests-accepted.txt b/tests-accepted.txt index 80387cb..f3cc6a3 100644 --- a/tests-accepted.txt +++ b/tests-accepted.txt @@ -3,7 +3,7 @@ Acceptance Tests for `timeprint` -------------------------------------------------------------------------------- Test 1: [/?] -timeprint v2.0.0-beta | https://github.com/hollasch/timeprint +timeprint v2.0.0 | https://github.com/hollasch/timeprint timeprint - Print time and date information usage: timeprint [--codeChar ] [-%] diff --git a/timeprint.cpp b/timeprint.cpp index a7226ce..5e8228b 100644 --- a/timeprint.cpp +++ b/timeprint.cpp @@ -106,11 +106,11 @@ int wmain (int argc, wchar_t *argv[]) help (params.helpType); - tm currentTime; - time_t deltaTimeSeconds; + tm calculatedTime; + time_t deltaTimeSeconds; - if (calcTime (params, currentTime, deltaTimeSeconds)) { - printResults (params.format, params.codeChar, currentTime, deltaTimeSeconds); + if (calcTime (params, calculatedTime, deltaTimeSeconds)) { + printResults (params.format, params.codeChar, calculatedTime, deltaTimeSeconds); return 0; } @@ -946,7 +946,7 @@ bool printDeltaFunc ( //__________________________________________________________________________________________________ static auto help_general = - L"timeprint v2.0.0-beta | https://github.com/hollasch/timeprint\n" + L"timeprint v2.0.0 | https://github.com/hollasch/timeprint\n" L"timeprint - Print time and date information\n" L"\n" L"usage: timeprint [--codeChar ] [-%]\n"