mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
███████████-mobile: More accurate clicks handling. [#MOBMET-1212]
This commit is contained in:
parent
b332a14f1f
commit
3d95d19283
@ -185,3 +185,12 @@ inline std::ostream & operator<< (std::ostream & ostr, const Date & date)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
namespace std
|
||||
{
|
||||
inline string to_string(const mysqlxx::Date & date)
|
||||
{
|
||||
return date.toString();
|
||||
}
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ private:
|
||||
unsigned char m_hour;
|
||||
unsigned char m_minute;
|
||||
unsigned char m_second;
|
||||
|
||||
|
||||
void init(time_t time)
|
||||
{
|
||||
if (unlikely(time > DATE_LUT_MAX || time == 0))
|
||||
@ -39,10 +39,10 @@ private:
|
||||
m_hour = 0;
|
||||
m_minute = 0;
|
||||
m_second = 0;
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
DateLUT & date_lut = DateLUT::instance();
|
||||
const DateLUT::Values & values = date_lut.getValues(time);
|
||||
|
||||
@ -190,3 +190,14 @@ inline std::ostream & operator<< (std::ostream & ostr, const DateTime & datetime
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
namespace std
|
||||
{
|
||||
inline string to_string(const mysqlxx::DateTime & datetime)
|
||||
{
|
||||
stringstream str;
|
||||
str << datetime;
|
||||
return str.str();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user