code format

This commit is contained in:
gabime 2025-01-17 21:01:54 +02:00
parent 47fe6ef92a
commit fbe626d828

View File

@ -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; }