mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Support negative time_t in more functions
This commit is contained in:
parent
738d106874
commit
d276fac135
@ -19,7 +19,7 @@
|
||||
|
||||
/// A constant to add to time_t so every supported time point becomes non-negative and still has the same remainder of division by 3600.
|
||||
/// If we treat "remainder of division" operation in the sense of modular arithmetic (not like in C++).
|
||||
#define DATE_LUT_ADD (1970 - DATE_LUT_MIN_YEAR) * 366 * 86400
|
||||
#define DATE_LUT_ADD ((1970 - DATE_LUT_MIN_YEAR) * 366 * 86400)
|
||||
|
||||
|
||||
#if defined(__PPC__)
|
||||
|
Loading…
Reference in New Issue
Block a user