1 | #pragma once |
---|---|
2 | |
3 | #include <string> |
4 | #include <Core/ColumnNumbers.h> |
5 | #include <Core/ColumnsWithTypeAndName.h> |
6 | |
7 | |
8 | class DateLUTImpl; |
9 | |
10 | namespace DB |
11 | { |
12 | |
13 | class Block; |
14 | |
15 | /// Determine working timezone either from optional argument with time zone name or from time zone in DateTime type of argument. |
16 | std::string extractTimeZoneNameFromFunctionArguments(const ColumnsWithTypeAndName & arguments, size_t time_zone_arg_num, size_t datetime_arg_num); |
17 | const DateLUTImpl & extractTimeZoneFromFunctionArguments(Block & block, const ColumnNumbers & arguments, size_t time_zone_arg_num, size_t datetime_arg_num); |
18 | |
19 | } |
20 |