ClickHouse/src/Functions/timezoneOffset.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
459 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
REGISTER_FUNCTION(timezoneOffset)
2021-02-02 03:01:20 +00:00
{
factory.registerFunction<FunctiontimezoneOffset>();
factory.registerAlias("timeZoneOffset", "timezoneOffset");
2021-02-02 03:01:20 +00:00
}
}