mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
20 lines
474 B
C++
20 lines
474 B
C++
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/DateTimeTransforms.h>
|
|
#include <Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
using FunctionToStartOfFiveMinutes = FunctionDateOrDateTimeToDateTimeOrDateTime64<ToStartOfFiveMinutesImpl>;
|
|
|
|
REGISTER_FUNCTION(ToStartOfFiveMinutes)
|
|
{
|
|
factory.registerFunction<FunctionToStartOfFiveMinutes>();
|
|
factory.registerAlias("toStartOfFiveMinute", FunctionToStartOfFiveMinutes::name);
|
|
}
|
|
|
|
}
|
|
|
|
|