ClickHouse/src/Functions/timezoneOffset.cpp

20 lines
425 B
C++
Raw Normal View History

2021-02-02 03:01:20 +00:00
#include <Functions/FunctionFactory.h>
#include <Functions/DateTimeTransforms.h>
#include <Functions/FunctionDateOrDateTimeToSomething.h>
#include <DataTypes/DataTypesNumber.h>
namespace DB
{
2021-02-02 15:35:45 +00:00
using FunctiontimezoneOffset = FunctionDateOrDateTimeToSomething<DataTypeInt32, TimezoneOffsetImpl>;
2021-02-02 03:01:20 +00:00
void registerFunctiontimezoneOffset(FunctionFactory & factory)
{
factory.registerFunction<FunctiontimezoneOffset>();
}
}