ClickHouse/src/Functions/toStartOfFiveMinutes.cpp

20 lines
499 B
C++
Raw Normal View History

#include <Functions/FunctionFactory.h>
#include <Functions/DateTimeTransforms.h>
#include <Functions/FunctionDateOrDateTimeToSomething.h>
namespace DB
{
using FunctionToStartOfFiveMinutes = FunctionDateOrDateTimeToSomething<DataTypeDateTime, ToStartOfFiveMinutesImpl>;
void registerFunctionToStartOfFiveMinutes(FunctionFactory & factory)
{
factory.registerFunction<FunctionToStartOfFiveMinutes>();
2022-04-22 03:27:24 +00:00
factory.registerAlias("toStartOfFiveMinute", FunctionToStartOfFiveMinutes::name);
}
}