ClickHouse/dbms/src/Functions/timeSlot.cpp

22 lines
438 B
C++

#include <Functions/IFunction.h>
#include <Functions/FunctionFactory.h>
#include <Functions/DateTimeTransforms.h>
#include <Functions/FunctionDateOrDateTimeToSomething.h>
#include <DataTypes/DataTypesNumber.h>
namespace DB
{
using FunctionTimeSlot = FunctionDateOrDateTimeToSomething<DataTypeDateTime, TimeSlotImpl>;
void registerFunctionTimeSlot(FunctionFactory & factory)
{
factory.registerFunction<FunctionTimeSlot>();
}
}