mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-27 04:39:44 +01:00
Remove deprecated fmt/time.h
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
// 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_
|
||||
Reference in New Issue
Block a user