aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-10-17 19:05:24 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2018-10-17 19:43:15 -0700
commitf19df646a09d68856c5c4575174831f0d0a295e1 (patch)
treea9cfcdbe50a6973f39a76f3a793d99523ebe833a /toolsrc/include
parentcf199dba42735eac4065586dac0701fdfc6fd53d (diff)
downloadvcpkg-f19df646a09d68856c5c4575174831f0d0a295e1.tar.gz
vcpkg-f19df646a09d68856c5c4575174831f0d0a295e1.zip
Survey times. Refactor Chrono stuff. All times UTC, unless explicitly mentioned
Survey is set to be every 6 months, but you also get one in the first 10 days.
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/base/chrono.h8
-rw-r--r--toolsrc/include/vcpkg/base/system.h2
2 files changed, 6 insertions, 4 deletions
diff --git a/toolsrc/include/vcpkg/base/chrono.h b/toolsrc/include/vcpkg/base/chrono.h
index aa764a597..6f6e2b317 100644
--- a/toolsrc/include/vcpkg/base/chrono.h
+++ b/toolsrc/include/vcpkg/base/chrono.h
@@ -52,8 +52,10 @@ namespace vcpkg::Chrono
static Optional<CTime> get_current_date_time();
static Optional<CTime> parse(CStringView str);
- constexpr CTime() noexcept : m_tm{0} {}
- explicit constexpr CTime(tm t) noexcept : m_tm{t} {}
+ constexpr CTime() noexcept : m_tm {0} {}
+ explicit constexpr CTime(tm t) noexcept : m_tm {t} {}
+
+ CTime add_hours(const int hours) const;
std::string to_string() const;
@@ -62,4 +64,6 @@ namespace vcpkg::Chrono
private:
mutable tm m_tm;
};
+
+ tm get_current_date_time_local();
}
diff --git a/toolsrc/include/vcpkg/base/system.h b/toolsrc/include/vcpkg/base/system.h
index 005e09a3f..af56e45c1 100644
--- a/toolsrc/include/vcpkg/base/system.h
+++ b/toolsrc/include/vcpkg/base/system.h
@@ -8,8 +8,6 @@
namespace vcpkg::System
{
- tm get_current_date_time();
-
fs::path get_exe_path_of_current_process();
struct CMakeVariable