mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-27 16:09:05 +08:00
code format
This commit is contained in:
parent
47fe6ef92a
commit
fbe626d828
@ -123,9 +123,8 @@ public:
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
// Date time pattern appenders
|
||||
// Date time pattern formatters
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
static const char *ampm(const tm &t) { return t.tm_hour >= 12 ? "PM" : "AM"; }
|
||||
|
||||
static int to12h(const tm &t) { return t.tm_hour > 12 ? t.tm_hour - 12 : t.tm_hour; }
|
||||
|
Loading…
Reference in New Issue
Block a user