ClickHouse/src/Functions/toStartOfHour.cpp

19 lines
356 B
C++
Raw Normal View History

#include <Functions/FunctionFactory.h>
#include <Functions/DateTimeTransforms.h>
#include <Functions/FunctionDateOrDateTimeToSomething.h>
namespace DB
{
using FunctionToStartOfHour = FunctionDateOrDateTimeToSomething<DataTypeDateTime, ToStartOfHourImpl>;
REGISTER_FUNCTION(ToStartOfHour)
{
factory.registerFunction<FunctionToStartOfHour>();
}
}