mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 17:44:23 +00:00
GlobalCorrector: added program to overwrite metrics in metrage [#METR-11762]
This commit is contained in:
parent
8d928558dc
commit
146378633a
@ -164,11 +164,15 @@ public:
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
std::string toString()
|
||||
std::string toString(char separator = '-') const
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << year() << '-' << (month() / 10) << (month() % 10)
|
||||
<< '-' << (day() / 10) << (day() % 10);
|
||||
if (separator)
|
||||
ss << year() << separator << (month() / 10) << (month() % 10)
|
||||
<< separator << (day() / 10) << (day() % 10);
|
||||
else
|
||||
ss << year() << (month() / 10) << (month() % 10)
|
||||
<< (day() / 10) << (day() % 10);
|
||||
return ss.str();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user