aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/timeSlot.cpp
blob: aca37bd66dbe5db75078bf4fa20d843bcf160e4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <Functions/IFunction.h>
#include <Functions/FunctionFactory.h>
#include <Functions/DateTimeTransforms.h>
#include <Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h>
#include <DataTypes/DataTypesNumber.h>


namespace DB
{

using FunctionTimeSlot = FunctionDateOrDateTimeToDateTimeOrDateTime64<TimeSlotImpl>;

REGISTER_FUNCTION(TimeSlot)
{
    factory.registerFunction<FunctionTimeSlot>();
}

}