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
|
|
|
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(timezoneOffset)
|
2021-02-02 03:01:20 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctiontimezoneOffset>();
|
2021-04-26 19:17:23 +00:00
|
|
|
factory.registerAlias("timeZoneOffset", "timezoneOffset");
|
2021-02-02 03:01:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|