diff options
Diffstat (limited to 'zen/format_unit.h')
-rw-r--r-- | zen/format_unit.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/zen/format_unit.h b/zen/format_unit.h index eacb8d46..fcc42dfa 100644 --- a/zen/format_unit.h +++ b/zen/format_unit.h @@ -9,6 +9,7 @@ #include <string> #include <cstdint> +#include "optional.h" #include "string_tools.h" @@ -26,8 +27,11 @@ template <class NumberType> std::wstring toGuiString(NumberType number); //format integer number including thousands separator - - +#ifdef ZEN_WIN_VISTA_AND_LATER + //reverse calculation of utcToLocalTimeString() + Opt<std::int64_t> mtpVariantTimetoUtc(double localTime); //returns empty on error + Opt<double> utcToMtpVariantTime(int64_t utcTime); // +#endif |