**Example**

Query:

```` sql
SELECT formatDateTime(toDate('2010-01-04'), '%Q')
````

Result:

```` sql
┌─formatDateTime(toDate('2010-01-04'), '%Q')─┐
│ 1                                          │
└────────────────────────────────────────────┘
````


}
            else
            {
                result.append(pos, end);
                add_shift(end + 1 - pos); 
                break;
            }
        }
        return result;
    }
};
struct NameFormatDateTime
{
    static constexpr auto name = "formatDateTime";
};
struct NameFromUnixTime
{
    static constexpr auto name = "FROM_UNIXTIME";
};
using FunctionFormatDateTime = FunctionFormatDateTimeImpl<NameFormatDateTime, false>;
using FunctionFROM_UNIXTIME = FunctionFormatDateTimeImpl<NameFromUnixTime, true>;
}
void registerFunctionFormatDateTime(FunctionFactory & factory)
{
    factory.registerFunction<FunctionFormatDateTime>();
    factory.registerFunction<FunctionFROM_UNIXTIME>();
    factory.registerAlias("fromUnixTimestamp", "FROM_UNIXTIME");
}
}