Commit b97e5d8c authored by Victor Zverovich's avatar Victor Zverovich

Remove deprecated fmt/time.h

parent 572b077d
......@@ -144,7 +144,7 @@ endfunction()
# Define the fmt library, its includes and the needed defines.
add_headers(FMT_HEADERS chrono.h color.h core.h format.h format-inl.h locale.h
ostream.h prepare.h printf.h time.h ranges.h)
ostream.h prepare.h printf.h ranges.h)
set(FMT_SOURCES src/format.cc)
if (HAVE_OPEN)
add_headers(FMT_HEADERS posix.h)
......
......@@ -480,7 +480,9 @@ struct chrono_formatter {
std::chrono::duration<rep, Period>(val));
}
Rep hour() const { return mod((s.count() / 3600), 24); }
Rep hour() const {
return static_cast<Rep>(mod((s.count() / 3600), 24));
}
Rep hour12() const {
Rep hour = mod((s.count() / 3600), 12);
......
// Formatting library for C++ - time formatting
//
// Copyright (c) 2012 - present, Victor Zverovich
// All rights reserved.
//
// For the license information refer to format.h.
#ifndef FMT_TIME_H_
#define FMT_TIME_H_
#include "chrono.h"
#ifdef _MSC_VER
# pragma message("fmt/time.h is deprecated, use fmt/chrono.h instead")
#else
# warning fmt/time.h is deprecated, use fmt/chrono.h instead
#endif
#endif // FMT_TIME_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment